Snap for 8813441 from 4a48dc5e96 to tm-qpr1-release

Change-Id: I3a434c64d80c0eb32739170dfd897202c026569c
This commit is contained in:
Android Build Coastguard Worker
2022-07-09 03:25:56 +00:00
2 changed files with 15 additions and 3 deletions

View File

@@ -60,9 +60,21 @@ public class SubscriptionActionDialogActivity extends FragmentActivity {
* @param message The string content should be displayed in the progress dialog. * @param message The string content should be displayed in the progress dialog.
*/ */
protected void showProgressDialog(String message) { protected void showProgressDialog(String message) {
showProgressDialog(message,false);
}
/**
* Displays a loading dialog.
*
* @param message The string content should be displayed in the progress dialog.
* @param updateIfNeeded is whether to update the progress state in the SharedPreferences.
*/
protected void showProgressDialog(String message, boolean updateIfNeeded) {
ProgressDialogFragment.show(getFragmentManager(), message, null); ProgressDialogFragment.show(getFragmentManager(), message, null);
if (updateIfNeeded) {
setProgressState(PROGRESS_IS_SHOWING); setProgressState(PROGRESS_IS_SHOWING);
} }
}
/** Dismisses the loading dialog. */ /** Dismisses the loading dialog. */
protected void dismissProgressDialog() { protected void dismissProgressDialog() {

View File

@@ -220,8 +220,8 @@ public class ToggleSubscriptionDialogActivity extends SubscriptionActionDialogAc
showProgressDialog( showProgressDialog(
getString( getString(
R.string.sim_action_switch_sub_dialog_progress, R.string.sim_action_switch_sub_dialog_progress,
SubscriptionUtil.getUniqueSubscriptionDisplayName( SubscriptionUtil.getUniqueSubscriptionDisplayName(mSubInfo, this)),
mSubInfo, this))); removedSubInfo != null ? true : false);
if (mIsEsimOperation) { if (mIsEsimOperation) {
mSwitchToEuiccSubscriptionSidecar.run(mSubInfo.getSubscriptionId(), mSwitchToEuiccSubscriptionSidecar.run(mSubInfo.getSubscriptionId(),
UiccSlotUtil.INVALID_PORT_ID, UiccSlotUtil.INVALID_PORT_ID,