show the copied path at copying to clipboard

This commit is contained in:
tibbi committed 2022-03-21 20:06:48 +01:00
1 parent 3a27a529d5
commit 10b91c2504
2 files changed
+2 -4

No files matched your search

+1 -1
View File
@@ -63,7 +63,7 @@ android {
}
dependencies {
implementation 'com.github.SimpleMobileTools:Simple-Commons:e699738fae'
implementation 'com.github.SimpleMobileTools:Simple-Commons:24fca0324f'
implementation 'com.github.Stericson:RootTools:df729dcb13'
implementation 'com.github.Stericson:RootShell:1.6'
implementation 'com.alexvasilkov:gesture-views:2.5.2'
@@ -366,10 +366,8 @@ class ItemsAdapter(
}
private fun copyPath() {
val clip = ClipData.newPlainText(activity.getString(R.string.app_name), getFirstSelectedItemPath())
(activity.getSystemService(Context.CLIPBOARD_SERVICE) as ClipboardManager).setPrimaryClip(clip)
activity.copyToClipboard(getFirstSelectedItemPath())
finishActMode()
activity.toast(R.string.path_copied)
}
private fun setAs() {