Remove "Backup Calling" button from Settings UI
Remove "Backup Calling" button from Settings UI, keep it always enabled. Bug: 253698238 Test: build pass Change-Id: Iff2665829e559ab7dce20e58a50ca75b8dcd6f83
This commit is contained in:
@@ -26,7 +26,6 @@ import com.android.settings.R;
|
||||
import com.android.settings.Utils;
|
||||
import com.android.settings.dashboard.DashboardFragment;
|
||||
import com.android.settings.network.telephony.CallsDefaultSubscriptionController;
|
||||
import com.android.settings.network.telephony.NetworkProviderBackupCallingPreferenceController;
|
||||
import com.android.settings.network.telephony.NetworkProviderWifiCallingPreferenceController;
|
||||
import com.android.settings.network.telephony.SmsDefaultSubscriptionController;
|
||||
import com.android.settings.search.BaseSearchIndexProvider;
|
||||
@@ -42,9 +41,6 @@ public class NetworkProviderCallsSmsFragment extends DashboardFragment {
|
||||
static final String LOG_TAG = "NetworkProviderCallsSmsFragment";
|
||||
@VisibleForTesting
|
||||
static final String KEY_PREFERENCE_CATEGORY_CALLING = "provider_model_calling_category";
|
||||
@VisibleForTesting
|
||||
static final String KEY_PREFERENCE_CATEGORY_BACKUP_CALLING =
|
||||
"provider_model_backup_calling_category";
|
||||
|
||||
@VisibleForTesting
|
||||
static final String KEY_PREFERENCE_CALLS= "provider_model_calls_preference";
|
||||
@@ -67,12 +63,6 @@ public class NetworkProviderCallsSmsFragment extends DashboardFragment {
|
||||
mNetworkProviderWifiCallingPreferenceController.init(getSettingsLifecycle());
|
||||
controllers.add(mNetworkProviderWifiCallingPreferenceController);
|
||||
|
||||
NetworkProviderBackupCallingPreferenceController backupCallingPrefCtrl =
|
||||
new NetworkProviderBackupCallingPreferenceController(context,
|
||||
KEY_PREFERENCE_CATEGORY_BACKUP_CALLING);
|
||||
backupCallingPrefCtrl.init(getSettingsLifecycle());
|
||||
controllers.add(backupCallingPrefCtrl);
|
||||
|
||||
return controllers;
|
||||
}
|
||||
|
||||
|
||||
@@ -38,6 +38,7 @@ import java.util.Objects;
|
||||
|
||||
/**
|
||||
* Preference controller for "Backup Calling"
|
||||
* Deprecated ToDo: b/260059444 remove it next version
|
||||
**/
|
||||
public class BackupCallingPreferenceController extends TelephonyTogglePreferenceController {
|
||||
|
||||
|
||||
@@ -269,11 +269,6 @@ public class MobileNetworkSettings extends AbstractMobileNetworkSettings impleme
|
||||
|
||||
final VideoCallingPreferenceController videoCallingPreferenceController =
|
||||
use(VideoCallingPreferenceController.class).init(mSubId);
|
||||
final BackupCallingPreferenceController crossSimCallingPreferenceController =
|
||||
use(BackupCallingPreferenceController.class).init(mSubId);
|
||||
use(CallingPreferenceCategoryController.class).setChildren(
|
||||
Arrays.asList(wifiCallingPreferenceController, videoCallingPreferenceController,
|
||||
crossSimCallingPreferenceController));
|
||||
use(Enhanced4gLtePreferenceController.class).init(mSubId)
|
||||
.addListener(videoCallingPreferenceController);
|
||||
use(Enhanced4gCallingPreferenceController.class).init(mSubId)
|
||||
|
||||
@@ -49,6 +49,7 @@ import java.util.Map;
|
||||
|
||||
/**
|
||||
* Preference controller for "Backup Calling"
|
||||
* Deprecated ToDo: b/260059444 remove it next version
|
||||
**/
|
||||
public class NetworkProviderBackupCallingGroup extends
|
||||
TelephonyTogglePreferenceController implements LifecycleObserver,
|
||||
|
||||
@@ -32,6 +32,7 @@ import java.util.List;
|
||||
|
||||
/**
|
||||
* Preference controller for "Backup Calling" summary list
|
||||
* Deprecated ToDo: b/260059444 remove it next version
|
||||
*/
|
||||
public class NetworkProviderBackupCallingPreferenceController extends
|
||||
BasePreferenceController implements LifecycleObserver {
|
||||
|
||||
Reference in New Issue
Block a user