mirror of
https://github.com/Myzel394/NumberHub.git
synced 2025-06-19 16:55:26 +02:00
Possible fix for Analytics option
This commit is contained in:
parent
2adf756bff
commit
02a6826e1f
@ -477,7 +477,11 @@ class MainViewModel @Inject constructor(
|
||||
precision = userPref.digitsPrecision
|
||||
separator = userPref.separator.also { Formatter.setSeparator(it) }
|
||||
outputFormat = userPref.outputFormat
|
||||
enableAnalytics = userPref.enableAnalytics
|
||||
enableAnalytics = userPref.enableAnalytics.also {
|
||||
// Maybe this is unnecessary
|
||||
if (it != enableAnalytics) FirebaseAnalytics.getInstance(application)
|
||||
.setAnalyticsCollectionEnabled(enableAnalytics)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user