mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-08-30 22:21:55 +00:00
56 lines
2.6 KiB
Diff
56 lines
2.6 KiB
Diff
![]() |
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||
|
From: Tad <tad@spotco.us>
|
||
|
Date: Tue, 14 Apr 2020 16:59:46 -0400
|
||
|
Subject: [PATCH] Fix calling after VoLTE is removed from devices that had it
|
||
|
previously enabled
|
||
|
|
||
|
Change-Id: Id5e3b8f7793d0783104b8b59581688c8ef821396
|
||
|
---
|
||
|
src/java/com/android/ims/ImsManager.java | 26 +-----------------------
|
||
|
1 file changed, 1 insertion(+), 25 deletions(-)
|
||
|
|
||
|
diff --git a/src/java/com/android/ims/ImsManager.java b/src/java/com/android/ims/ImsManager.java
|
||
|
index c41426d..e94a6aa 100644
|
||
|
--- a/src/java/com/android/ims/ImsManager.java
|
||
|
+++ b/src/java/com/android/ims/ImsManager.java
|
||
|
@@ -544,13 +544,6 @@ public class ImsManager implements FeatureUpdates {
|
||
|
*/
|
||
|
@UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553)
|
||
|
public static boolean isEnhanced4gLteModeSettingEnabledByUser(Context context) {
|
||
|
- DefaultSubscriptionManagerProxy p = new DefaultSubscriptionManagerProxy(context);
|
||
|
- ImsManager mgr = ImsManager.getInstance(context, p.getDefaultVoicePhoneId());
|
||
|
- if (mgr != null) {
|
||
|
- return mgr.isEnhanced4gLteModeSettingEnabledByUser();
|
||
|
- }
|
||
|
- Rlog.e(TAG, "isEnhanced4gLteModeSettingEnabledByUser: ImsManager null, returning default"
|
||
|
- + " value.");
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
@@ -565,24 +558,7 @@ public class ImsManager implements FeatureUpdates {
|
||
|
* return the default value.
|
||
|
*/
|
||
|
public boolean isEnhanced4gLteModeSettingEnabledByUser() {
|
||
|
- int setting = mSubscriptionManagerProxy.getIntegerSubscriptionProperty(
|
||
|
- getSubId(), SubscriptionManager.ENHANCED_4G_MODE_ENABLED,
|
||
|
- SUB_PROPERTY_NOT_INITIALIZED);
|
||
|
- boolean onByDefault = getBooleanCarrierConfig(
|
||
|
- CarrierConfigManager.KEY_ENHANCED_4G_LTE_ON_BY_DEFAULT_BOOL);
|
||
|
- boolean isUiUnEditable =
|
||
|
- !getBooleanCarrierConfig(CarrierConfigManager.KEY_EDITABLE_ENHANCED_4G_LTE_BOOL)
|
||
|
- || getBooleanCarrierConfig(CarrierConfigManager.KEY_HIDE_ENHANCED_4G_LTE_BOOL);
|
||
|
- boolean isSettingNotInitialized = setting == SUB_PROPERTY_NOT_INITIALIZED;
|
||
|
-
|
||
|
- // If Enhanced 4G LTE Mode is uneditable, hidden, not initialized and VoIMS opt-in disabled
|
||
|
- // we use the default value. If VoIMS opt-in is enabled, we will always allow the user to
|
||
|
- // change the IMS enabled setting.
|
||
|
- if ((isUiUnEditable || isSettingNotInitialized) && !isVoImsOptInEnabled()) {
|
||
|
- return onByDefault;
|
||
|
- } else {
|
||
|
- return (setting == ProvisioningManager.PROVISIONING_VALUE_ENABLED);
|
||
|
- }
|
||
|
+ return false;
|
||
|
}
|
||
|
|
||
|
/**
|