[dev_option] Dismiss reboot dialog on screen rotation.
Bug: 356273849 Test: mp droid and locally checked that there are no errors and crashes Flag: EXEMPT minor fix Change-Id: Id60b304788bfb79fee13858c8e7bc30261f8e1c7
This commit is contained in:
@@ -21,6 +21,7 @@ import android.app.settings.SettingsEnums;
|
||||
import android.content.DialogInterface;
|
||||
import android.os.Bundle;
|
||||
|
||||
import androidx.annotation.VisibleForTesting;
|
||||
import androidx.appcompat.app.AlertDialog;
|
||||
import androidx.fragment.app.Fragment;
|
||||
import androidx.fragment.app.FragmentManager;
|
||||
@@ -57,7 +58,8 @@ public class RebootConfirmationDialogFragment extends InstrumentedDialogFragment
|
||||
}
|
||||
}
|
||||
|
||||
private RebootConfirmationDialogFragment(
|
||||
@VisibleForTesting
|
||||
RebootConfirmationDialogFragment(
|
||||
int messageId, int cancelButtonId, RebootConfirmationDialogHost host) {
|
||||
mMessageId = messageId;
|
||||
mCancelButtonId = cancelButtonId;
|
||||
@@ -92,4 +94,11 @@ public class RebootConfirmationDialogFragment extends InstrumentedDialogFragment
|
||||
super.onDismiss(dialog);
|
||||
mHost.onRebootDialogDismissed();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onPause() {
|
||||
dismiss();
|
||||
|
||||
super.onPause();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user