Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 225b3b06 authored by Lucas Silva's avatar Lucas Silva Committed by Android (Google) Code Review
Browse files

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

parents 76516bbd 059154eb
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -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;
    }