Modify the preferredSimDialogFragment
After the telephony flag resetPrimarySimDefaultValues on, the telephony set the preferred default subscription to remaining sim. Therefore, here can ask whether the user uses [remaining SIM] for mobile data or not Bug: 349783684 Test: remove the sim card, and settings show "use mobile data" dialog Flag: EXEMPT bugfix Change-Id: I5e3399e777bf1e8ef7998074082e55635eb23eb4
This commit is contained in:
@@ -122,6 +122,7 @@ public class SimDialogActivity extends FragmentActivity {
|
||||
|
||||
private void showOrUpdateDialog() {
|
||||
final int dialogType = getIntent().getIntExtra(DIALOG_TYPE_KEY, INVALID_PICK);
|
||||
Log.d(TAG, "dialogType:" + dialogType);
|
||||
|
||||
if (dialogType == PICK_DISMISS) {
|
||||
finishAndRemoveTask();
|
||||
@@ -379,8 +380,6 @@ public class SimDialogActivity extends FragmentActivity {
|
||||
|
||||
private void setPreferredSim(final int subId) {
|
||||
setDefaultDataSubId(subId);
|
||||
setDefaultSmsSubId(subId);
|
||||
setDefaultCallsSubId(subId);
|
||||
}
|
||||
|
||||
private PhoneAccountHandle subscriptionIdToPhoneAccountHandle(final int subId) {
|
||||
|
||||
Reference in New Issue
Block a user