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

Commit bd2fc2fe 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 fdedc209
Loading
Loading
Loading
Loading
+4 −1
Original line number Original line Diff line number Diff line
@@ -63,6 +63,9 @@ public class RotationLockTile extends QSTileImpl<BooleanState> implements


    private static final String EMPTY_SECONDARY_STRING = "";
    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 Icon mIcon = ResourceIcon.get(com.android.internal.R.drawable.ic_qs_auto_rotate);
    private final RotationLockController mController;
    private final RotationLockController mController;
    private final SensorPrivacyManager mPrivacyManager;
    private final SensorPrivacyManager mPrivacyManager;
@@ -127,7 +130,7 @@ public class RotationLockTile extends QSTileImpl<BooleanState> implements


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


    @Override
    @Override