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

Commit d515f672 authored by Bill Lin's avatar Bill Lin
Browse files

Fix ACTION_ONE_HANDED_SETTINGS breaks CTS IntentTest

The CTS test will check new added intent is expected
android.signature.cts.intent.IntentTest#shouldNotFindUnexpectedIntents

If the new added intent should belong to allow list,
we should add it into
cts/tests/signature/intent-check/DynamicConfig.xml

However, in One handed mode case, I think it's make
sense to define in settings provider
frameworks/base/core/java/android/provider/Settings.java

Test: atest android.signature.cts.intent.IntentTest
Fixes: 206824091
Fixes: 206989400

Change-Id: Ibee10261a780737a83f5e5b3dff5c20bc31ceafe
parent 70ba2506
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -1563,15 +1563,6 @@ public class Intent implements Parcelable, Cloneable {
    @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION)
    public static final String ACTION_POWER_USAGE_SUMMARY = "android.intent.action.POWER_USAGE_SUMMARY";

    /**
     * Activity Action: Show one-handed mode settings to the user.
     * <p>Input: Nothing.
     * <p>Output: Nothing.
     * @hide
     */
    public static final String ACTION_ONE_HANDED_SETTINGS =
            "android.intent.action.ONE_HANDED_SETTINGS";

    /**
     * Activity Action: Setup wizard action provided for OTA provisioning to determine if it needs
     * to run.
+2 −1
Original line number Diff line number Diff line
@@ -105,7 +105,8 @@ public class OneHandedModeTile extends QSTileImpl<BooleanState> {

    @Override
    public Intent getLongClickIntent() {
        return new Intent(Intent.ACTION_ONE_HANDED_SETTINGS);
        // TODO(b/201743873) define new intent action ACTION_ONE_HANDED_SETTINGS in Settings.
        return null;
    }

    @Override