From a5929dad1f084499e4e3ba2df3c0118a5a736092 Mon Sep 17 00:00:00 2001 From: Malcolm Chen Date: Mon, 7 Dec 2020 11:39:16 -0800 Subject: [PATCH] Automatically dismiss SIM combination warnings and selection dialogs. Bug: 142092510 Test: manual and unittest Change-Id: I79468016814d23f2b77d5cf1e559b9a58e2949ab --- telephony/java/android/telephony/TelephonyManager.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java index df0b9ac66ea02..31a12493b33c0 100644 --- a/telephony/java/android/telephony/TelephonyManager.java +++ b/telephony/java/android/telephony/TelephonyManager.java @@ -1515,6 +1515,16 @@ public class TelephonyManager { */ public static final int EXTRA_DEFAULT_SUBSCRIPTION_SELECT_TYPE_ALL = 4; + /** + * Used as an int value for {@link #EXTRA_DEFAULT_SUBSCRIPTION_SELECT_TYPE} + * to indicate that default subscription for data/sms/voice is now determined, that + * it should dismiss any dialog or pop-ups that is asking user to select default sub. + * This is used when, for example, opportunistic subscription is configured. At that + * time the primary becomes default sub there's no need to ask user to select anymore. + * @hide + */ + public static final int EXTRA_DEFAULT_SUBSCRIPTION_SELECT_TYPE_DISMISS = 5; + /** * Integer intent extra to be used with {@link #ACTION_PRIMARY_SUBSCRIPTION_LIST_CHANGED} * to indicate if the SIM combination in DSDS has limitation or compatible issue.