commit | 27097a5fc141da67151efdfc4ad5d95744b4e3c3 | [log] [tgz] |
---|---|---|
author | Ethan Chen <intervigil@gmail.com> | Thu Oct 05 23:13:07 2017 -0700 |
committer | Sam Mortimer <sam@mortimer.me.uk> | Mon Oct 16 18:51:34 2017 +0000 |
tree | a3d10b05526567243b5c4bd57e5df7f696fcc811 | |
parent | 3bdb661729aaf4c35197a7a6ad25d7b50e9c4423 [diff] |
LineageParts: getDefaultDataSubId => getDefaultDataSubscriptionId * Google updated the method name in SubscriptionManager here: https://android.googlesource.com/platform/frameworks/base.git/+/7ea3e8bf8954343d7b243b6a23bcb8339921f3c8%5E%21/ Change-Id: Ib1df5385878b3940f5e76f9140c07b4ddefc57a0
diff --git a/src/org/lineageos/lineageparts/profiles/SetupActionsFragment.java b/src/org/lineageos/lineageparts/profiles/SetupActionsFragment.java index 695fe39..9442256 100644 --- a/src/org/lineageos/lineageparts/profiles/SetupActionsFragment.java +++ b/src/org/lineageos/lineageparts/profiles/SetupActionsFragment.java
@@ -770,7 +770,7 @@ int selectedMode = Integer.parseInt(data.getStringExtra( TelephonyUtils.EXTRA_NETWORK_PICKER_PICKED_VALUE)); int subId = data.getIntExtra(TelephonyUtils.EXTRA_SUBID, - SubscriptionManager.getDefaultDataSubId()); + SubscriptionManager.getDefaultDataSubscriptionId()); ConnectionOverrideItem connItem = (ConnectionOverrideItem) mSelectedItem; final ConnectionSettings setting = connItem.getSettings(); // final ConnectionSettings setting = mProfile.getConnectionSettingWithSubId(subId);
diff --git a/src/org/lineageos/lineageparts/profiles/actions/item/ConnectionOverrideItem.java b/src/org/lineageos/lineageparts/profiles/actions/item/ConnectionOverrideItem.java index 6639305..bad2e61 100644 --- a/src/org/lineageos/lineageparts/profiles/actions/item/ConnectionOverrideItem.java +++ b/src/org/lineageos/lineageparts/profiles/actions/item/ConnectionOverrideItem.java
@@ -103,7 +103,8 @@ if (mConnectionId == ConnectionSettings.PROFILE_CONNECTION_2G3G4G) { // different options if (mConnectionSettings.isOverride()) { return TelephonyUtils.getNetworkModeString(context, - mConnectionSettings.getValue(), SubscriptionManager.getDefaultDataSubId()); + mConnectionSettings.getValue(), + SubscriptionManager.getDefaultDataSubscriptionId()); } else { resId = R.string.profile_action_none; }