aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSanket Padawe <sanketpadawe@google.com>2017-03-20 15:09:23 -0700
committerSanket Padawe <sanketpadawe@google.com>2017-03-21 11:25:10 -0700
commit616dc26461a2791297031c14525551a7bd8326dc (patch)
tree2e4b4665f20c294724675ba3cd5ba745df093ca4
parent09f7cfd82645ab6f9a967b0f241a84ff2a3236ec (diff)
downloadMessaging-616dc26461a2791297031c14525551a7bd8326dc.tar.gz
Update SubscriptionManager API by replacing 'id' & 'idx' with 'index'.
Bug: 35767068 Test: No build failure on update. Change-Id: Iab619e80da63685212043f88d30c171a013f8925
-rw-r--r--src/android/support/v7/mms/MmsHttpClient.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/android/support/v7/mms/MmsHttpClient.java b/src/android/support/v7/mms/MmsHttpClient.java
index 8ca34da..6c1c35e 100644
--- a/src/android/support/v7/mms/MmsHttpClient.java
+++ b/src/android/support/v7/mms/MmsHttpClient.java
@@ -466,19 +466,19 @@ public class MmsHttpClient {
}
/**
- * Invoke hidden SubscriptionManager.getSlotId(int)
+ * Invoke hidden SubscriptionManager.getSlotIndex(int)
*
* @param subId the subId
* @return the SIM slot ID
*/
private static int getSlotId(final int subId) {
try {
- final Method method = SubscriptionManager.class.getMethod("getSlotId", Integer.TYPE);
+ final Method method = SubscriptionManager.class.getMethod("getSlotIndex", Integer.TYPE);
if (method != null) {
return (Integer) method.invoke(null, subId);
}
} catch (Exception e) {
- Log.w(MmsService.TAG, "SubscriptionManager.getSlotId failed " + e);
+ Log.w(MmsService.TAG, "SubscriptionManager.getSlotIndex failed " + e);
}
return -1;
}