diff options
author | Dominik Schürmann <dominik@dominikschuermann.de> | 2014-04-19 21:56:15 +0200 |
---|---|---|
committer | Dominik Schürmann <dominik@dominikschuermann.de> | 2014-04-19 21:56:15 +0200 |
commit | 7017a01bdb68d2cd7351dfa05825676217e42532 (patch) | |
tree | 2e73c5d8027ce4b9e262baeaddf8b84a6297882f /OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/dialog | |
parent | 0383822585e60bd206742f50966bb1584ee2dfd9 (diff) | |
download | open-keychain-7017a01bdb68d2cd7351dfa05825676217e42532.tar.gz open-keychain-7017a01bdb68d2cd7351dfa05825676217e42532.tar.bz2 open-keychain-7017a01bdb68d2cd7351dfa05825676217e42532.zip |
More code cleanup
Diffstat (limited to 'OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/dialog')
3 files changed, 4 insertions, 7 deletions
diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/dialog/DeleteKeyDialogFragment.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/dialog/DeleteKeyDialogFragment.java index 7913df6c8..93cdef5e3 100644 --- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/dialog/DeleteKeyDialogFragment.java +++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/dialog/DeleteKeyDialogFragment.java @@ -68,7 +68,6 @@ public class DeleteKeyDialogFragment extends DialogFragment { @Override public Dialog onCreateDialog(Bundle savedInstanceState) { - final FragmentActivity activity = getActivity(); mMessenger = getArguments().getParcelable(ARG_MESSENGER); diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/dialog/ShareNfcDialogFragment.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/dialog/ShareNfcDialogFragment.java index 01079b44e..15df53dcc 100644 --- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/dialog/ShareNfcDialogFragment.java +++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/dialog/ShareNfcDialogFragment.java @@ -88,13 +88,11 @@ public class ShareNfcDialogFragment extends DialogFragment { Settings.ACTION_NFCSHARING_SETTINGS); startActivity(intentSettings); } - }); + } + ); } } - - // no flickering when clicking textview for Android < 4 - // aboutTextView.setTextColor(getResources().getColor(android.R.color.black)); - + return alert.create(); } } diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/dialog/ShareQrCodeDialogFragment.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/dialog/ShareQrCodeDialogFragment.java index 37b219b02..fe50c759b 100644 --- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/dialog/ShareQrCodeDialogFragment.java +++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/dialog/ShareQrCodeDialogFragment.java @@ -92,7 +92,7 @@ public class ShareQrCodeDialogFragment extends DialogFragment { mText = (TextView) view.findViewById(R.id.share_qr_code_dialog_text); ProviderHelper providerHelper = new ProviderHelper(getActivity()); - String content = null; + String content; try { if (mFingerprintOnly) { alert.setPositiveButton(R.string.btn_okay, null); |