Merge "Deprecating SubscriptionManager#switchToSubscription API"
This commit is contained in:
committed by
Android (Google) Code Review
commit
5582db8e55
@@ -43552,7 +43552,7 @@ package android.telephony {
|
||||
method public void setSubscriptionOverrideUnmetered(int, boolean, @NonNull int[], long);
|
||||
method @Deprecated public void setSubscriptionPlans(int, @NonNull java.util.List<android.telephony.SubscriptionPlan>);
|
||||
method public void setSubscriptionPlans(int, @NonNull java.util.List<android.telephony.SubscriptionPlan>, long);
|
||||
method @RequiresPermission("android.permission.WRITE_EMBEDDED_SUBSCRIPTIONS") public void switchToSubscription(int, @NonNull android.app.PendingIntent);
|
||||
method @Deprecated @RequiresPermission("android.permission.WRITE_EMBEDDED_SUBSCRIPTIONS") public void switchToSubscription(int, @NonNull android.app.PendingIntent);
|
||||
field public static final String ACTION_DEFAULT_SMS_SUBSCRIPTION_CHANGED = "android.telephony.action.DEFAULT_SMS_SUBSCRIPTION_CHANGED";
|
||||
field public static final String ACTION_DEFAULT_SUBSCRIPTION_CHANGED = "android.telephony.action.DEFAULT_SUBSCRIPTION_CHANGED";
|
||||
field public static final String ACTION_MANAGE_SUBSCRIPTION_PLANS = "android.telephony.action.MANAGE_SUBSCRIPTION_PLANS";
|
||||
|
||||
@@ -3196,12 +3196,13 @@ public class SubscriptionManager {
|
||||
* @param subId sub id
|
||||
* @param callbackIntent pending intent that will be sent after operation is done.
|
||||
*
|
||||
* to-be-deprecated this API is a duplicate of {@link EuiccManager#switchToSubscription(int,
|
||||
* @deprecated this API is a duplicate of {@link EuiccManager#switchToSubscription(int,
|
||||
* PendingIntent)} and does not support Multiple Enabled Profile(MEP). Apps should use
|
||||
* {@link EuiccManager#switchToSubscription(int, PendingIntent)} or
|
||||
* {@link EuiccManager#switchToSubscription(int, int, PendingIntent)} instead.
|
||||
*/
|
||||
@RequiresPermission(android.Manifest.permission.WRITE_EMBEDDED_SUBSCRIPTIONS)
|
||||
@Deprecated
|
||||
public void switchToSubscription(int subId, @NonNull PendingIntent callbackIntent) {
|
||||
Preconditions.checkNotNull(callbackIntent, "callbackIntent cannot be null");
|
||||
EuiccManager euiccManager = new EuiccManager(mContext);
|
||||
|
||||
Reference in New Issue
Block a user