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
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user