diff options
author | Dominik Schürmann <dominik@dominikschuermann.de> | 2015-05-19 16:02:57 +0200 |
---|---|---|
committer | Vincent Breitmoser <valodim@mugenguild.com> | 2015-05-28 16:33:41 +0200 |
commit | 0b5c66ad0de94386f75df728e5a4d1e8de391ff5 (patch) | |
tree | 3315e5cd8b37fab4abfbaffd619cfe5470413751 /OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/dialog/AddKeyserverDialogFragment.java | |
parent | 6e3ed1d2db1f9dcf8cc90deda4370a1dc058f79b (diff) | |
download | open-keychain-0b5c66ad0de94386f75df728e5a4d1e8de391ff5.tar.gz open-keychain-0b5c66ad0de94386f75df728e5a4d1e8de391ff5.tar.bz2 open-keychain-0b5c66ad0de94386f75df728e5a4d1e8de391ff5.zip |
Improve strings
Diffstat (limited to 'OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/dialog/AddKeyserverDialogFragment.java')
-rw-r--r-- | OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/dialog/AddKeyserverDialogFragment.java | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/dialog/AddKeyserverDialogFragment.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/dialog/AddKeyserverDialogFragment.java index cbef5950f..cfad76fc3 100644 --- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/dialog/AddKeyserverDialogFragment.java +++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/dialog/AddKeyserverDialogFragment.java @@ -58,7 +58,6 @@ import javax.net.ssl.HttpsURLConnection; public class AddKeyserverDialogFragment extends DialogFragment implements OnEditorActionListener { private static final String ARG_MESSENGER = "messenger"; - private static final String ARG_TITLE = "title"; public static final int MESSAGE_OKAY = 1; public static final int MESSAGE_VERIFICATION_FAILED = 2; @@ -85,10 +84,9 @@ public class AddKeyserverDialogFragment extends DialogFragment implements OnEdit * @param messenger to communicate back after setting the passphrase * @return */ - public static AddKeyserverDialogFragment newInstance(Messenger messenger, int title) { + public static AddKeyserverDialogFragment newInstance(Messenger messenger) { AddKeyserverDialogFragment frag = new AddKeyserverDialogFragment(); Bundle args = new Bundle(); - args.putInt(ARG_TITLE, title); args.putParcelable(ARG_MESSENGER, messenger); frag.setArguments(args); @@ -103,12 +101,11 @@ public class AddKeyserverDialogFragment extends DialogFragment implements OnEdit public Dialog onCreateDialog(Bundle savedInstanceState) { final Activity activity = getActivity(); - int title = getArguments().getInt(ARG_TITLE); mMessenger = getArguments().getParcelable(ARG_MESSENGER); CustomAlertDialogBuilder alert = new CustomAlertDialogBuilder(activity); - alert.setTitle(title); + alert.setTitle(R.string.add_keyserver_dialog_title); LayoutInflater inflater = activity.getLayoutInflater(); View view = inflater.inflate(R.layout.add_keyserver_dialog, null); |