mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-29 13:24:52 +02:00
No key available
This commit is contained in:
@@ -3494,18 +3494,20 @@ public class Helper {
|
||||
@Override
|
||||
public void run() {
|
||||
if (owner.getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED)) {
|
||||
if (selected == null)
|
||||
if (selected == null) {
|
||||
intf.onNothingSelected();
|
||||
else
|
||||
ToastEx.makeText(activity, R.string.title_no_key_selected, Toast.LENGTH_LONG).show();
|
||||
} else
|
||||
intf.onSelected(selected);
|
||||
} else {
|
||||
owner.getLifecycle().addObserver(new LifecycleObserver() {
|
||||
@OnLifecycleEvent(Lifecycle.Event.ON_START)
|
||||
public void onStart() {
|
||||
owner.getLifecycle().removeObserver(this);
|
||||
if (selected == null)
|
||||
if (selected == null) {
|
||||
intf.onNothingSelected();
|
||||
else
|
||||
ToastEx.makeText(activity, R.string.title_no_key_selected, Toast.LENGTH_LONG).show();
|
||||
} else
|
||||
intf.onSelected(selected);
|
||||
}
|
||||
|
||||
|
||||
@@ -1257,6 +1257,7 @@
|
||||
<string name="title_case_sensitive">Usernames and passwords are usually case sensitive</string>
|
||||
<string name="title_login_before_send">Receive before sending</string>
|
||||
<string name="title_client_certificate">Client certificate</string>
|
||||
<string name="title_no_key_selected">No key selected or no keys available</string>
|
||||
<string name="title_realm">Realm</string>
|
||||
<string name="title_use_ip">Use local IP address instead of host name</string>
|
||||
<string name="title_ehlo">Custom HELO/EHLO identification</string>
|
||||
|
||||
Reference in New Issue
Block a user