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

Commit 7d6dbea4 authored by Arian's avatar Arian Committed by Michael Bestas
Browse files

SystemUI: tiles: Open display settings on long clicks for livedisplay tiles

* Since commit "LineageParts: Allow removing livedisplay pref screen with
  config_enableLiveDisplay" I17103ad116d1d26855fb47fdee1fa6cdc914e053 the
  org.lineageos.lineageparts.LIVEDISPLAY_SETTINGS action does not exist
  anymore and hence the long click was broken.

* Instead open the display settings where the LiveDisplay settings can be
  found easily.

Change-Id: I5ddcf9f8877552f60adb5216d065ffdf93786a44
parent 62089724
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -49,8 +49,7 @@ public class ReadingModeTile extends QSTileImpl<BooleanState> {

    private final Icon mIcon = ResourceIcon.get(R.drawable.ic_qs_reader);

    private static final Intent LIVEDISPLAY_SETTINGS =
            new Intent("org.lineageos.lineageparts.LIVEDISPLAY_SETTINGS");
    private static final Intent DISPLAY_SETTINGS = new Intent("android.settings.DISPLAY_SETTINGS");

    private LineageHardwareManager mHardware;

@@ -84,7 +83,7 @@ public class ReadingModeTile extends QSTileImpl<BooleanState> {

    @Override
    public Intent getLongClickIntent() {
        return LIVEDISPLAY_SETTINGS;
        return DISPLAY_SETTINGS;
    }

    @Override