Merge "Add getSubscriptionId API" am: 7813c4a9a3
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/2470383 Change-Id: I8d3584c77241e2d273bccf1d97ad592501d9afd5 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -57,10 +57,6 @@ public class DisableSmartForwardingTask implements Runnable {
|
||||
}
|
||||
|
||||
private int getSubId(int slotIndex) {
|
||||
int[] subId = SubscriptionManager.getSubId(slotIndex);
|
||||
if (subId != null && subId.length > 0) {
|
||||
return subId[0];
|
||||
}
|
||||
return SubscriptionManager.INVALID_SUBSCRIPTION_ID;
|
||||
return SubscriptionManager.getSubscriptionId(slotIndex);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user