Merge "Update dream complication settings to use boolean setting." into tm-qpr-dev

This commit is contained in:
Lucas Silva
2022-08-24 13:54:16 +00:00
committed by Android (Google) Code Review

View File

@@ -42,14 +42,12 @@ public class DreamComplicationPreferenceController extends TogglePreferenceContr
@Override @Override
public boolean isChecked() { public boolean isChecked() {
return mBackend.getEnabledComplications().containsAll(mBackend.getSupportedComplications()); return mBackend.getComplicationsEnabled();
} }
@Override @Override
public boolean setChecked(boolean isChecked) { public boolean setChecked(boolean isChecked) {
for (int complication : mBackend.getSupportedComplications()) { mBackend.setComplicationsEnabled(isChecked);
mBackend.setComplicationEnabled(complication, isChecked);
}
return true; return true;
} }