mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-01 17:26:12 +00:00
Cancel download: composer
This commit is contained in:
parent
c1d3c6d376
commit
0fab872702
1 changed files with 9 additions and 7 deletions
|
@ -184,15 +184,17 @@ public class FragmentDialogDownloadAttachments extends FragmentDialogBase {
|
||||||
pbDownloaded.setVisibility(remaining.isEmpty() ? View.VISIBLE : View.GONE);
|
pbDownloaded.setVisibility(remaining.isEmpty() ? View.VISIBLE : View.GONE);
|
||||||
tvRemaining.setVisibility(remaining.isEmpty() ? View.VISIBLE : View.GONE);
|
tvRemaining.setVisibility(remaining.isEmpty() ? View.VISIBLE : View.GONE);
|
||||||
|
|
||||||
|
final DialogInterface.OnClickListener listener = new DialogInterface.OnClickListener() {
|
||||||
|
@Override
|
||||||
|
public void onClick(DialogInterface dialog, int which) {
|
||||||
|
startActivity(intent);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
return new AlertDialog.Builder(context)
|
return new AlertDialog.Builder(context)
|
||||||
.setView(dview)
|
.setView(dview)
|
||||||
.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {
|
.setPositiveButton(android.R.string.ok, listener)
|
||||||
@Override
|
.setNegativeButton(R.string.title_dismiss, listener)
|
||||||
public void onClick(DialogInterface dialog, int which) {
|
|
||||||
startActivity(intent);
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.setNegativeButton(android.R.string.cancel, null)
|
|
||||||
.create();
|
.create();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue