File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
internal_filesystem/builtin/apps/com.micropythonos.settings/assets Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 11import lvgl as lv
2+
23from mpos .apps import Intent
34from mpos import PackageManager , SettingActivity , SettingsActivity
45import mpos .config
1011
1112# Used to list and edit all settings:
1213class Settings (SettingsActivity ):
14+
1315 def __init__ (self ):
1416 super ().__init__ ()
15- self .prefs = None
17+ self .prefs = mpos . config . SharedPreferences ( "com.micropythonos.settings" )
1618 theme_colors = [
1719 ("Aqua Blue" , "00ffff" ),
1820 ("Bitcoin Orange" , "f0a010" ),
@@ -56,11 +58,6 @@ def __init__(self):
5658 # Maybe also add font size (but ideally then all fonts should scale up/down)
5759 ]
5860
59- def onCreate (self ):
60- if not self .prefs :
61- self .prefs = mpos .config .SharedPreferences ("com.micropythonos.settings" )
62- super ().onCreate ()
63-
6461 # Change handlers:
6562 def reset_into_bootloader (self , new_value ):
6663 if new_value is not "bootloader" :
You can’t perform that action at this time.
0 commit comments