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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user