1
0
Fork 0
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:
M66B 2020-01-08 11:44:28 +01:00
parent a5bea023b5
commit 5b229528a9

View file

@ -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);
}