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);
|
startActivity(viewKeyIntent);
|
||||||
|
|
||||||
} catch (PgpKeyNotFoundException e) {
|
} 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) {
|
if (toClipboard) {
|
||||||
ClipboardManager clipMan = (ClipboardManager) activity.getSystemService(Context.CLIPBOARD_SERVICE);
|
ClipboardManager clipMan = (ClipboardManager) activity.getSystemService(Context.CLIPBOARD_SERVICE);
|
||||||
if (clipMan == null) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -278,7 +278,7 @@ public class ViewKeyAdvShareFragment extends LoaderFragment implements
|
||||||
if (toClipboard) {
|
if (toClipboard) {
|
||||||
ClipboardManager clipMan = (ClipboardManager) activity.getSystemService(Context.CLIPBOARD_SERVICE);
|
ClipboardManager clipMan = (ClipboardManager) activity.getSystemService(Context.CLIPBOARD_SERVICE);
|
||||||
if (clipMan == null) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -126,7 +126,7 @@ public class LinkedIdCreateHttpsStep2Fragment extends LinkedIdCreateFinalFragmen
|
||||||
private void proofSave () {
|
private void proofSave () {
|
||||||
String state = Environment.getExternalStorageState();
|
String state = Environment.getExternalStorageState();
|
||||||
if (!Environment.MEDIA_MOUNTED.equals(state)) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue