Merge "Adding comments to the to-be deprecated SubscriptionManager#switchToSubscription" into tm-dev am: 29571eb054

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17377023

Change-Id: I3eca72fc6420ada27d407bc44ce4a67fbcaebd75
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Sandeep Jawalkar
2022-03-30 12:20:31 +00:00
committed by Automerger Merge Worker

View File

@@ -3216,6 +3216,11 @@ 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,
* 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)
public void switchToSubscription(int subId, @NonNull PendingIntent callbackIntent) {