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

Commit cd11aa88 authored by Victor Truong's avatar Victor Truong
Browse files

Disable dream highlight when screensaver is disabled in Settings.

Bug: 228329639
Test: Manual
Change-Id: Ic6d9664cc800c28327fbcaa1628bb518c07354f2
parent 7a5ade7e
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -177,4 +177,11 @@ public class DreamAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>
            notifyDataSetChanged();
        }
    }

    /**
     * Gets the enabled state of all items.
     */
    public boolean getEnabled() {
        return mEnabled;
    }
}
+1 −1
Original line number Diff line number Diff line
@@ -158,7 +158,7 @@ public class DreamPickerController extends BasePreferenceController implements

        @Override
        public boolean isActive() {
            if (mActiveDream == null) {
            if (!mAdapter.getEnabled() || mActiveDream == null) {
                return false;
            }
            return mDreamInfo.componentName.equals(mActiveDream.componentName);