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

Commit 1f977b0e authored by Victor Truong's avatar Victor Truong Committed by Automerger Merge Worker
Browse files

Disable dream highlight when screensaver is disabled in Settings. am: cd11aa88

parents 89e58480 cd11aa88
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);