mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
map analytics optional
This commit is contained in:
parent
838e61a97a
commit
042e8d6ebb
9 changed files with 826 additions and 34 deletions
|
|
@ -259,9 +259,13 @@ class SettingsFragment : ScreenFragment("Settings"), Logging {
|
|||
requireActivity().hideKeyboard()
|
||||
}
|
||||
|
||||
// Set analytics checkbox
|
||||
analyticsOkayCheckbox.isChecked =
|
||||
(requireContext().applicationContext as GeeksvilleApplication).isAnalyticsAllowed
|
||||
analyticsOkayCheckbox.setOnCheckedChangeListener { _, isChecked ->
|
||||
// FIXME, preserve this in settings
|
||||
analyticsOkayCheckbox.isChecked = true // so users will complain and I'll fix the bug
|
||||
debug("User changed analytics to $isChecked")
|
||||
(requireContext().applicationContext as GeeksvilleApplication).isAnalyticsAllowed =
|
||||
isChecked
|
||||
}
|
||||
|
||||
scanModel.errorText.observe(viewLifecycleOwner, Observer { errMsg ->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue