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

Commit 7f99bee1 authored by DroidFreak32's avatar DroidFreak32 Committed by Bruno Martins
Browse files

RotationLockTile: Open LineageParts rotation settings

Current long press action opens up AOSP rotation settings which does not allow us to configure the 0, 90, 180 and 270 degree rotation

Change-Id: I00c163cbde84a10b7f61acaade3cf086dc4c7a6d
parent 4d1d2fbc
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -62,6 +62,9 @@ public class RotationLockTile extends QSTileImpl<BooleanState> implements

    private static final String EMPTY_SECONDARY_STRING = "";

    private static final String ROTATION_SETTINGS =
            "org.lineageos.lineageparts.DISPLAY_ROTATION";

    private final Icon mIcon = ResourceIcon.get(com.android.internal.R.drawable.ic_qs_auto_rotate);
    private final RotationLockController mController;
    private final SensorPrivacyManager mPrivacyManager;
@@ -122,7 +125,7 @@ public class RotationLockTile extends QSTileImpl<BooleanState> implements

    @Override
    public Intent getLongClickIntent() {
        return new Intent(Settings.ACTION_AUTO_ROTATE_SETTINGS);
        return new Intent(ROTATION_SETTINGS);
    }

    @Override