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
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;
}