mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-08-31 06:15:48 +00:00
Add option to automatically copy password to clipboard after decryption
This commit is contained in:
@@ -338,7 +338,9 @@ public class PgpHandler extends ActionBarActivity implements OpenPgpServiceConne
|
||||
.setText(extraContent);
|
||||
}
|
||||
new DelayShow().execute();
|
||||
copyToClipBoard();
|
||||
if (settings.getBoolean("copy_on_decrypt", true)) {
|
||||
copyToClipBoard();
|
||||
}
|
||||
} else {
|
||||
showToast(os.toString());
|
||||
}
|
||||
|
@@ -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>
|
Reference in New Issue
Block a user