From 56eaeedbb43d718dd15b60aa1eb48de1158552ab Mon Sep 17 00:00:00 2001 From: Sanket Padawe Date: Mon, 20 Mar 2017 15:09:23 -0700 Subject: Update SubscriptionManager API by replacing 'id' & 'idx' with 'index'. Bug: 35767068 Test: No build failure on update. Change-Id: Iab619e80da63685212043f88d30c171a013f8925 Merged-in: Iab619e80da63685212043f88d30c171a013f8925 --- src/android/support/v7/mms/MmsHttpClient.java | 6 +++--- 1 file 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; } -- cgit v1.2.3