Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to automatically copy password to clipboard after decryption #23

Merged
merged 3 commits into from
Oct 29, 2014
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add option to automatically copy password to clipboard after decryption
  • Loading branch information
jbaiter committed Oct 29, 2014
commit 7d4b6683ef446c4a7317fe7cc450533ff18c6061
4 changes: 3 additions & 1 deletion app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,9 @@ public void onReturn(Intent result) {
.setText(extraContent);
}
new DelayShow().execute();
copyToClipBoard();
if (settings.getBoolean("copy_on_decrypt", true)) {
copyToClipBoard();
}
} else {
showToast(os.toString());
}
Expand Down
4 changes: 4 additions & 0 deletions app/src/main/res/xml/preference.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,9 @@
android:dialogTitle="Set the time you want the password to be in clipboard"
android:summary="Set the time you want the password to be in clipboard"
android:hint="45" android:key="general_show_time" />
<CheckBoxPreference android:title="Automatically Copy Password"
android:dialogTitle="Automatically copy the password to the clipboard after decryption was successful."
android:summary="Automatically copy the password to the clipboard after decryption was successful."
android:key="copy_on_decrypt" android:defaultValue="true" />
</PreferenceCategory>
</PreferenceScreen>