Merge "Make the force stop dialog work properly in split screen" into tm-dev am: f6c416054e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/18281655 Change-Id: I9cea804407d90ff8b7304d311031e25d1b340e0e Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -90,6 +90,12 @@ public class ButtonActionDialogFragment extends InstrumentedDialogFragment imple
|
||||
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
// When it's in a multi-window mode, force stopping an app will lead to an activity
|
||||
// recreate, and the dialog fragment will also be recreated. So dismiss the dialog before
|
||||
// stopping the app.
|
||||
if (mId == ButtonActionDialogFragment.DialogType.FORCE_STOP) {
|
||||
dialog.dismiss();
|
||||
}
|
||||
final AppButtonsDialogListener lsn =
|
||||
(AppButtonsDialogListener) getTargetFragment();
|
||||
lsn.handleDialogClick(mId);
|
||||
|
Reference in New Issue
Block a user