Commit graph

9 commits

Author SHA1 Message Date
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