mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-09-02 07:15:21 +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);
|
.setText(extraContent);
|
||||||
}
|
}
|
||||||
new DelayShow().execute();
|
new DelayShow().execute();
|
||||||
|
if (settings.getBoolean("copy_on_decrypt", true)) {
|
||||||
copyToClipBoard();
|
copyToClipBoard();
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
showToast(os.toString());
|
showToast(os.toString());
|
||||||
}
|
}
|
||||||
|
@@ -30,5 +30,9 @@
|
|||||||
android:dialogTitle="Set the time you want the password to be in clipboard"
|
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:summary="Set the time you want the password to be in clipboard"
|
||||||
android:hint="45" android:key="general_show_time" />
|
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>
|
</PreferenceCategory>
|
||||||
</PreferenceScreen>
|
</PreferenceScreen>
|
Reference in New Issue
Block a user