Skip to content

Commit 10b91c2

Browse files
committed
show the copied path at copying to clipboard
1 parent 3a27a52 commit 10b91c2

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ android {
6363
}
6464

6565
dependencies {
66-
implementation 'com.github.SimpleMobileTools:Simple-Commons:e699738fae'
66+
implementation 'com.github.SimpleMobileTools:Simple-Commons:24fca0324f'
6767
implementation 'com.github.Stericson:RootTools:df729dcb13'
6868
implementation 'com.github.Stericson:RootShell:1.6'
6969
implementation 'com.alexvasilkov:gesture-views:2.5.2'

app/src/main/kotlin/com/simplemobiletools/filemanager/pro/adapters/ItemsAdapter.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -366,10 +366,8 @@ class ItemsAdapter(
366366
}
367367

368368
private fun copyPath() {
369-
val clip = ClipData.newPlainText(activity.getString(R.string.app_name), getFirstSelectedItemPath())
370-
(activity.getSystemService(Context.CLIPBOARD_SERVICE) as ClipboardManager).setPrimaryClip(clip)
369+
activity.copyToClipboard(getFirstSelectedItemPath())
371370
finishActMode()
372-
activity.toast(R.string.path_copied)
373371
}
374372

375373
private fun setAs() {

0 commit comments

Comments
 (0)