comment out Move function for now
This commit is contained in:
parent
beba22b764
commit
fa14b43e3e
5 changed files with 8 additions and 10 deletions
|
@ -9,11 +9,9 @@ import com.simplemobiletools.filepicker.extensions.humanizePath
|
|||
import com.simplemobiletools.gallery.R
|
||||
import com.simplemobiletools.gallery.Utils
|
||||
import com.simplemobiletools.gallery.asynctasks.CopyTask
|
||||
import com.simplemobiletools.gallery.extensions.scanFile
|
||||
import com.simplemobiletools.gallery.extensions.toast
|
||||
import kotlinx.android.synthetic.main.copy_item.view.*
|
||||
import java.io.File
|
||||
import java.util.*
|
||||
|
||||
class CopyDialog(val activity: Activity, val files: List<File>, val copyListener: CopyTask.CopyDoneListener, val listener: OnCopyListener) {
|
||||
|
||||
|
@ -71,12 +69,12 @@ class CopyDialog(val activity: Activity, val files: List<File>, val copyListener
|
|||
return@setOnClickListener
|
||||
}
|
||||
|
||||
if (view.dialog_radio_group.checkedRadioButtonId == R.id.dialog_radio_copy) {
|
||||
//if (view.dialog_radio_group.checkedRadioButtonId == R.id.dialog_radio_copy) {
|
||||
context.toast(R.string.copying)
|
||||
val pair = Pair<List<File>, File>(files, destinationDir)
|
||||
CopyTask(copyListener, context).execute(pair)
|
||||
dismiss()
|
||||
} else {
|
||||
/*} else {
|
||||
if (Utils.isPathOnSD(context, sourcePath) && Utils.isPathOnSD(context, destinationPath)) {
|
||||
val paths = ArrayList<String>()
|
||||
for (f in files) {
|
||||
|
@ -94,7 +92,7 @@ class CopyDialog(val activity: Activity, val files: List<File>, val copyListener
|
|||
CopyTask(copyListener, context).execute(pair)
|
||||
dismiss()
|
||||
}
|
||||
}
|
||||
}*/
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
@ -44,7 +44,7 @@
|
|||
android:paddingTop="@dimen/small_padding"
|
||||
android:text="@string/select_destination"/>
|
||||
|
||||
<RadioGroup
|
||||
<!--<RadioGroup
|
||||
android:id="@+id/dialog_radio_group"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
|
@ -62,5 +62,5 @@
|
|||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/move"/>
|
||||
</RadioGroup>
|
||||
</RadioGroup>-->
|
||||
</LinearLayout>
|
||||
|
|
|
@ -18,6 +18,6 @@
|
|||
app:showAsAction="ifRoom"/>
|
||||
<item
|
||||
android:id="@+id/cab_copy"
|
||||
android:title="@string/copy_move"
|
||||
android:title="@string/copy"
|
||||
app:showAsAction="never"/>
|
||||
</menu>
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
app:showAsAction="ifRoom"/>
|
||||
<item
|
||||
android:id="@+id/cab_copy"
|
||||
android:title="@string/copy_move"
|
||||
android:title="@string/copy"
|
||||
app:showAsAction="never"/>
|
||||
<item
|
||||
android:id="@+id/cab_delete"
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<item
|
||||
android:id="@+id/menu_copy"
|
||||
android:title="@string/copy_move"
|
||||
android:title="@string/copy"
|
||||
app:showAsAction="never"/>
|
||||
<item
|
||||
android:id="@+id/menu_set_as_wallpaper"
|
||||
|
|
Loading…
Reference in a new issue