Fix showing of some notifications
This commit is contained in:
parent
33bc407e7a
commit
80be81adb3
|
@ -201,7 +201,7 @@ public abstract class DecryptFragment extends Fragment implements LoaderManager.
|
|||
startActivity(viewKeyIntent);
|
||||
|
||||
} catch (PgpKeyNotFoundException e) {
|
||||
Notify.create(getActivity(), R.string.error_key_not_found, Style.ERROR);
|
||||
Notify.create(getActivity(), R.string.error_key_not_found, Style.ERROR).show();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -207,7 +207,7 @@ public class ViewKeyAdvShareFragment extends LoaderFragment implements
|
|||
if (toClipboard) {
|
||||
ClipboardManager clipMan = (ClipboardManager) activity.getSystemService(Context.CLIPBOARD_SERVICE);
|
||||
if (clipMan == null) {
|
||||
Notify.create(activity, R.string.error_clipboard_copy, Style.ERROR);
|
||||
Notify.create(activity, R.string.error_clipboard_copy, Style.ERROR).show();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -278,7 +278,7 @@ public class ViewKeyAdvShareFragment extends LoaderFragment implements
|
|||
if (toClipboard) {
|
||||
ClipboardManager clipMan = (ClipboardManager) activity.getSystemService(Context.CLIPBOARD_SERVICE);
|
||||
if (clipMan == null) {
|
||||
Notify.create(activity, R.string.error_clipboard_copy, Style.ERROR);
|
||||
Notify.create(activity, R.string.error_clipboard_copy, Style.ERROR).show();
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -126,7 +126,7 @@ public class LinkedIdCreateHttpsStep2Fragment extends LinkedIdCreateFinalFragmen
|
|||
private void proofSave () {
|
||||
String state = Environment.getExternalStorageState();
|
||||
if (!Environment.MEDIA_MOUNTED.equals(state)) {
|
||||
Notify.create(getActivity(), "External storage not available!", Style.ERROR);
|
||||
Notify.create(getActivity(), "External storage not available!", Style.ERROR).show();
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue