aboutsummaryrefslogtreecommitdiffstats
path: root/OpenKeychain/src/main/java
diff options
context:
space:
mode:
authorDominik Schürmann <dominik@dominikschuermann.de>2014-07-03 16:49:25 +0200
committerDominik Schürmann <dominik@dominikschuermann.de>2014-07-03 16:49:25 +0200
commit709196f774fc24dc0e7e6440391113f6be1e8e3a (patch)
treea064c55db7b29b581aa1365b9a32855c2efa52b1 /OpenKeychain/src/main/java
parente006d4762ce2b995425fa8e15e5fb99f6c377558 (diff)
downloadopen-keychain-709196f774fc24dc0e7e6440391113f6be1e8e3a.tar.gz
open-keychain-709196f774fc24dc0e7e6440391113f6be1e8e3a.tar.bz2
open-keychain-709196f774fc24dc0e7e6440391113f6be1e8e3a.zip
Use strings in edit key
Diffstat (limited to 'OpenKeychain/src/main/java')
-rw-r--r--OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/dialog/EditUserIdDialogFragment.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/dialog/EditUserIdDialogFragment.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/dialog/EditUserIdDialogFragment.java
index f0ca73f0d..5eba3a463 100644
--- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/dialog/EditUserIdDialogFragment.java
+++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/dialog/EditUserIdDialogFragment.java
@@ -26,6 +26,7 @@ import android.os.RemoteException;
import android.support.v4.app.DialogFragment;
import org.sufficientlysecure.keychain.Constants;
+import org.sufficientlysecure.keychain.R;
import org.sufficientlysecure.keychain.util.Log;
public class EditUserIdDialogFragment extends DialogFragment {
@@ -57,9 +58,9 @@ public class EditUserIdDialogFragment extends DialogFragment {
mMessenger = getArguments().getParcelable(ARG_MESSENGER);
CustomAlertDialogBuilder builder = new CustomAlertDialogBuilder(getActivity());
- CharSequence[] array = {"change to primary user id", "revoke"};
+ CharSequence[] array = getResources().getStringArray(R.array.edit_key_edit_user_id);
- builder.setTitle("select action!");
+ builder.setTitle(R.string.edit_key_edit_user_id_title);
builder.setItems(array, new DialogInterface.OnClickListener() {
@Override
@@ -76,7 +77,7 @@ public class EditUserIdDialogFragment extends DialogFragment {
}
}
});
- builder.setNegativeButton("cancel", new DialogInterface.OnClickListener() {
+ builder.setNegativeButton(android.R.string.cancel, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int id) {
dismiss();