diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/remote/OpenPgpService.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/remote/OpenPgpService.java index 4597c1ec0..f83e414da 100644 --- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/remote/OpenPgpService.java +++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/remote/OpenPgpService.java @@ -39,6 +39,7 @@ import android.os.ParcelFileDescriptor; import android.os.RemoteException; import android.support.annotation.NonNull; import android.support.annotation.Nullable; +import android.text.TextUtils; import org.bouncycastle.bcpg.ArmoredOutputStream; import org.openintents.openpgp.AutocryptPeerUpdate; @@ -719,7 +720,7 @@ public class OpenPgpService extends Service { String preferredUserId = data.getStringExtra(OpenPgpApi.EXTRA_USER_ID); PendingIntent pi; // the new dialog doesn't really work if we don't have a user id to work with. just show the old... - if (preferredUserId == null) { + if (TextUtils.isEmpty(preferredUserId)) { pi = mApiPendingIntentFactory.createSelectSignKeyIdLegacyPendingIntent(data, currentPkg, null); } else { byte[] packageSignature = mApiPermissionHelper.getPackageCertificateOrError(currentPkg); diff --git a/OpenKeychain/src/main/res/layout/api_select_identity_key.xml b/OpenKeychain/src/main/res/layout/api_select_identity_key.xml index 1c1b3fc3f..489a7d5f4 100644 --- a/OpenKeychain/src/main/res/layout/api_select_identity_key.xml +++ b/OpenKeychain/src/main/res/layout/api_select_identity_key.xml @@ -78,7 +78,7 @@ android:inAnimation="@anim/fade_in" android:outAnimation="@anim/fade_out" android:measureAllChildren="false" - custom:initialView="03"> + custom:initialView="01"> diff --git a/OpenKeychain/src/main/res/values/strings.xml b/OpenKeychain/src/main/res/values/strings.xml index 9565f4798..a27bd93d0 100644 --- a/OpenKeychain/src/main/res/values/strings.xml +++ b/OpenKeychain/src/main/res/values/strings.xml @@ -1992,7 +1992,7 @@ Use key: %s Use key: ]]> %s wants to set up end-to-end encryption for this address: - Cancel + Disable Create a key for me "Internal error saving key!" List unrelated keys