Show a confirm dialog before deleting galleries
This commit is contained in:
1 parent
7a47b2504d
commit
d00f6e6cc6
1 file changed
+5
-1
@@ -1089,7 +1089,11 @@ public final class GalleryListScene extends BaseScene
|
||||
break;
|
||||
case 1: // Download
|
||||
if (downloaded) {
|
||||
mDownloadManager.deleteDownload(gi.gid);
|
||||
new AlertDialog.Builder(context)
|
||||
.setTitle(R.string.download_remove_dialog_title)
|
||||
.setMessage(getString(R.string.download_remove_dialog_message, gi.title))
|
||||
.setPositiveButton(android.R.string.ok, (dialog1, which1) -> mDownloadManager.deleteDownload(gi.gid))
|
||||
.show();
|
||||
} else {
|
||||
CommonOperations.startDownload(activity, gi, false);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user