rename RenameItemDialog to RenameFileDialog
This commit is contained in:
parent
0ade1ec579
commit
fc8f8c3fa7
|
@ -23,7 +23,7 @@ import com.simplemobiletools.gallery.MyViewPager;
|
||||||
import com.simplemobiletools.gallery.R;
|
import com.simplemobiletools.gallery.R;
|
||||||
import com.simplemobiletools.gallery.Utils;
|
import com.simplemobiletools.gallery.Utils;
|
||||||
import com.simplemobiletools.gallery.adapters.MyPagerAdapter;
|
import com.simplemobiletools.gallery.adapters.MyPagerAdapter;
|
||||||
import com.simplemobiletools.gallery.dialogs.RenameItemDialog;
|
import com.simplemobiletools.gallery.dialogs.RenameFileDialog;
|
||||||
import com.simplemobiletools.gallery.fragments.ViewPagerFragment;
|
import com.simplemobiletools.gallery.fragments.ViewPagerFragment;
|
||||||
import com.simplemobiletools.gallery.models.Medium;
|
import com.simplemobiletools.gallery.models.Medium;
|
||||||
|
|
||||||
|
@ -301,7 +301,7 @@ public class ViewPagerActivity extends SimpleActivity
|
||||||
}
|
}
|
||||||
|
|
||||||
private void editMedium() {
|
private void editMedium() {
|
||||||
new RenameItemDialog(this, getCurrentFile(), new RenameItemDialog.OnRenameItemListener() {
|
new RenameFileDialog(this, getCurrentFile(), new RenameFileDialog.OnRenameItemListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onRenameSuccess(@NotNull File newFile) {
|
public void onRenameSuccess(@NotNull File newFile) {
|
||||||
mMedia.get(mPager.getCurrentItem()).setPath(newFile.getAbsolutePath());
|
mMedia.get(mPager.getCurrentItem()).setPath(newFile.getAbsolutePath());
|
||||||
|
|
|
@ -12,7 +12,7 @@ import com.simplemobiletools.gallery.extensions.value
|
||||||
import kotlinx.android.synthetic.main.rename_file.view.*
|
import kotlinx.android.synthetic.main.rename_file.view.*
|
||||||
import java.io.File
|
import java.io.File
|
||||||
|
|
||||||
class RenameItemDialog(val activity: Activity, val file: File, val listener: OnRenameItemListener) {
|
class RenameFileDialog(val activity: Activity, val file: File, val listener: OnRenameItemListener) {
|
||||||
|
|
||||||
init {
|
init {
|
||||||
val context = activity
|
val context = activity
|
Loading…
Reference in New Issue