1
0
mirror of https://github.com/oliexdev/openScale.git synced 2025-08-20 07:21:40 +02:00

Get isEnabled from settings

Otherwise the wrong default value may be used. Fiesx problem reported in #226.
This commit is contained in:
Erik Johansson
2018-03-24 19:55:12 +01:00
parent e0543639c1
commit 57daf44fb1

View File

@@ -226,7 +226,7 @@ public class MeasurementPreferences extends PreferenceFragment {
}
// Must be enabled to show extra preferences screen
if (!getPersistedBoolean(true)) {
if (!measurement.getSettings().isEnabled()) {
return true;
}