mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-29 11:15:51 +00:00
Small fix/improvement
This commit is contained in:
parent
a5bea023b5
commit
5b229528a9
1 changed files with 5 additions and 3 deletions
|
@ -277,9 +277,11 @@ public class Helper {
|
|||
}
|
||||
|
||||
// Check if viewer available
|
||||
if (ris.size() == 0)
|
||||
ToastEx.makeText(context, R.string.title_no_viewer, Toast.LENGTH_LONG).show();
|
||||
else
|
||||
if (ris.size() == 0) {
|
||||
String message = context.getString(R.string.title_no_viewer,
|
||||
type != null ? type : name != null ? name : file.getName());
|
||||
ToastEx.makeText(context, message, Toast.LENGTH_LONG).show();
|
||||
} else
|
||||
context.startActivity(intent);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue