Fix showing of some notifications

This commit is contained in:
Christian Hagau 2017-10-23 00:00:00 +00:00
parent 33bc407e7a
commit 80be81adb3
3 changed files with 4 additions and 4 deletions

View file

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

View file

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

View file

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