mirror of
https://github.com/moparisthebest/open-keychain
synced 2025-02-25 07:51:48 -05:00
Fix nullpointer in DecryptActivity
This commit is contained in:
parent
7531106565
commit
9e7c9a0d32
@ -79,7 +79,7 @@ public class DecryptActivity extends DrawerActivity {
|
||||
final String clipboardText =
|
||||
ClipboardReflection.getClipboardText(DecryptActivity.this).toString();
|
||||
|
||||
new AsyncTask<Void,Void,Boolean>() {
|
||||
AsyncTask<Void, Void, Boolean> tadaTask = new AsyncTask<Void, Void, Boolean>() {
|
||||
@Override
|
||||
protected Boolean doInBackground(Void... params) {
|
||||
|
||||
@ -104,7 +104,11 @@ public class DecryptActivity extends DrawerActivity {
|
||||
SubtleAttentionSeeker.tada(findViewById(R.id.clipboard_icon), 1.5f).start();
|
||||
}
|
||||
}
|
||||
}.execute();
|
||||
};
|
||||
|
||||
if (clipboardText != null) {
|
||||
tadaTask.execute();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user