mirror of
https://github.com/oliexdev/openScale.git
synced 2025-08-21 07:51:46 +02:00
Get isEnabled from settings
Otherwise the wrong default value may be used. Fiesx problem reported in #226.
This commit is contained in:
@@ -226,7 +226,7 @@ public class MeasurementPreferences extends PreferenceFragment {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Must be enabled to show extra preferences screen
|
// Must be enabled to show extra preferences screen
|
||||||
if (!getPersistedBoolean(true)) {
|
if (!measurement.getSettings().isEnabled()) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user