Commit 4f43dd36 authored by Nate Fischer's avatar Nate Fischer Committed by Commit Bot

AW: dismiss dialog when user presses cancel

Instead of finishing the Activity, this dismisses the dialog when the
user presses "cancel." This permits the user to see information about
other crashes, even if they don't want to upload them.

Bug: 1062500
Test: Manual
Change-Id: Iee6d8e159aa61e77b1de1c97c7621f69657e9f52
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2108165
Auto-Submit: Nate Fischer <ntfschr@chromium.org>
Reviewed-by: default avatarHazem Ashmawy <hazems@chromium.org>
Commit-Queue: Nate Fischer <ntfschr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#751405}
parent 16bcd77a
......@@ -273,7 +273,7 @@ public class CrashesListActivity extends Activity {
+ " Do you want to proceed?")
.setPositiveButton("Upload",
(dialog, id) -> attemptUploadCrash(crashInfo.localId))
.setNegativeButton("Cancel", (dialog, id) -> finish())
.setNegativeButton("Cancel", (dialog, id) -> dialog.dismiss())
.create()
.show();
} else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment