Merge "Update dream complication settings to use boolean setting." into tm-qpr-dev
This commit is contained in:
@@ -42,14 +42,12 @@ public class DreamComplicationPreferenceController extends TogglePreferenceContr
|
||||
|
||||
@Override
|
||||
public boolean isChecked() {
|
||||
return mBackend.getEnabledComplications().containsAll(mBackend.getSupportedComplications());
|
||||
return mBackend.getComplicationsEnabled();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean setChecked(boolean isChecked) {
|
||||
for (int complication : mBackend.getSupportedComplications()) {
|
||||
mBackend.setComplicationEnabled(complication, isChecked);
|
||||
}
|
||||
mBackend.setComplicationsEnabled(isChecked);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user