Commit graph

29 commits

Author SHA1 Message Date
Andre K
689e7e7eca
add ModuleConfig settings (#526) 2022-11-22 22:01:37 -03:00
Andre K
4bcd408dce
add user & device config settings (#520)
* add MeshUser & LocalConfig prefs
2022-11-08 23:11:18 -03:00
andrekir
b401c8bac3 move admin messages to nodes tab 2022-09-30 15:57:04 -03:00
andrekir
5382fdae49 update for proto changes 2022-09-18 18:35:13 -03:00
andrekir
fd0c8ef9b8 refactor config get and set methods 2022-09-12 00:26:12 -03:00
andrekir
5eb5cd1421 incorporate androidlib 2022-09-04 22:52:40 -03:00
Andre K
7caa09b3a6
Merge branch 'master' into dev-factory-reset 2022-08-25 20:39:53 -03:00
andrekir
9c6384a2fe add debug msg to shutdown and reboot 2022-08-23 18:06:02 -03:00
Douile
7adf3cd0f5
Add factory reset button 2022-08-23 11:13:47 +01:00
andrekir
0e65f504ef fix advanced settings & defaults 2022-06-17 02:00:18 -03:00
andrekir
6cc67594c2 enable shutdown button for AXP192 only 2022-06-13 18:13:47 -03:00
andrekir
73da709bb1 Revert "fix isESP32 logic"
This reverts commit d939f9784b.
2022-06-12 00:23:45 -03:00
andrekir
ce83c84723 update configs to LocalConfig 2022-06-10 21:55:26 -03:00
andrekir
d939f9784b fix isESP32 logic 2022-06-10 20:22:06 -03:00
andrekir
4784e8d14b disable sleep prefs for non-ESP32 devices 2022-06-10 19:22:34 -03:00
andrekir
14110d433f add shutdown & reboot strings 2022-06-06 17:36:40 -03:00
andrekir
47793a2086 add shutdown & reboot admin commands 2022-06-06 17:29:09 -03:00
andrekir
48fd657d8a update protobufs 2022-05-26 16:23:47 -03:00
andrekir
27c1817a59 rename isConnected --> connectionState 2022-04-24 12:12:13 -03:00
andrekir
a6fb214852 remove isAlwaysPowered 2022-03-28 09:11:06 -03:00
andrekir
291e54c275 use locationShareDisabled boolean 2022-03-26 17:09:05 -03:00
Mike Cumings
654a32c01c Introduce Hilt dependency injection
Uses Hilt to get the database initialization off of the
main thread.

The initial introduction always has a disproportionate
fan-out of boilerplate. In this case, all entry points which
were using UIViewModel needed to be annotated in order to let
the code gen know that they needed to support it.

The PacketRepository is injected into things via the main
thread (e.g., the MeshService) but due to the lazy declaration,
the database isn't hydrated until the DAO is access while on an
IO thread.
2022-02-08 13:57:04 -08:00
andrekir
a097cc2f25 send position to local node (without broadcast) 2022-01-26 02:35:37 -03:00
andrekir
11e6332d5d add switches to advanced settings 2022-01-24 18:23:09 -03:00
andrekir
460288d99f add isAlwaysPowered 2021-12-21 16:28:57 -03:00
Kevin Hester
1eaabfc216 fix java paths for protos 2021-02-27 13:43:55 +08:00
Kevin Hester
50dc26b36d fix autobug if user tries to change settings during an update
cc @vfurman-gh

Caused by android.os.RemoteException: Operation prohibited during firmware update
       at com.geeksville.util.ExceptionsKt.toRemoteExceptions(ExceptionsKt.java:61)
       at com.geeksville.mesh.service.MeshService$binder$1.setRadioConfig(MeshService.java:1589)
       at com.geeksville.mesh.model.UIViewModel.setRadioConfig(UIViewModel.java:163)
       at com.geeksville.mesh.model.UIViewModel.setLsSleepSecs(UIViewModel.java:148)
       at com.geeksville.mesh.ui.SettingsFragment$initCommonUI$8.invoke(SettingsFragment.java:637)
       at com.geeksville.mesh.ui.SettingsFragment$initCommonUI$8.invoke(SettingsFragment.java:464)
       at com.geeksville.mesh.ui.MessagesFragmentKt$on$1.onEditorAction(MessagesFragmentKt.java:35)
       at android.widget.TextView.onEditorAction(TextView.java:7042)
       at com.android.internal.widget.EditableInputConnection.performEditorAction(EditableInputConnection.java:138)
       at com.android.internal.view.IInputConnectionWrapper.executeMessage(IInputConnectionWrapper.java:357)
       at com.android.internal.view.IInputConnectionWrapper$MyHandler.handleMessage(IInputConnectionWrapper.java:89)
       at android.os.Handler.dispatchMessage(Handler.java:107)
       at android.os.Looper.loop(Looper.java:224)
       at android.app.ActivityThread.main(ActivityThread.java:7562)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)
2021-02-14 16:07:49 +08:00
Vadim Furman
2f7ce57015 Formatting 2021-02-13 22:02:24 -08:00
Vadim Furman
757c3867f2 Moved broadcast and ls_sleep in advanced settings 2021-02-13 21:35:57 -08:00