mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-09-03 15:55:14 +00:00
Add longpress to copy implicit username (#635)
* Add longpress to copy implicit username * Address review comments Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> Co-authored-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
@@ -3,6 +3,9 @@ All notable changes to this project will be documented in this file.
|
|||||||
|
|
||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
|
### Added
|
||||||
|
- Copy implicit username (password filename) by long pressing
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
- Can't delete folders containing a password
|
- Can't delete folders containing a password
|
||||||
|
|
||||||
|
@@ -124,6 +124,12 @@ class PgpActivity : AppCompatActivity(), OpenPgpServiceConnection.OnBound {
|
|||||||
setContentView(R.layout.decrypt_layout)
|
setContentView(R.layout.decrypt_layout)
|
||||||
crypto_password_category_decrypt.text = relativeParentPath
|
crypto_password_category_decrypt.text = relativeParentPath
|
||||||
crypto_password_file.text = name
|
crypto_password_file.text = name
|
||||||
|
crypto_password_file.setOnLongClickListener {
|
||||||
|
val clip = ClipData.newPlainText("pgp_handler_result_pm", name)
|
||||||
|
clipboard.setPrimaryClip(clip)
|
||||||
|
showSnackbar(this.resources.getString(R.string.clipboard_username_toast_text))
|
||||||
|
true
|
||||||
|
}
|
||||||
|
|
||||||
crypto_password_last_changed.text = try {
|
crypto_password_last_changed.text = try {
|
||||||
this.resources.getString(R.string.last_changed, lastChangedString)
|
this.resources.getString(R.string.last_changed, lastChangedString)
|
||||||
|
Reference in New Issue
Block a user