mirror of
https://github.com/SimpleMobileTools/Simple-File-Manager.git
synced 2025-02-06 13:24:09 +01:00
show the copied path at copying to clipboard
This commit is contained in:
parent
3a27a529d5
commit
10b91c2504
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user