rename RenameItemDialog to RenameFileDialog

This commit is contained in:
tibbi 2016-11-06 20:53:34 +01:00
parent 0ade1ec579
commit fc8f8c3fa7
2 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@ import com.simplemobiletools.gallery.MyViewPager;
import com.simplemobiletools.gallery.R;
import com.simplemobiletools.gallery.Utils;
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.models.Medium;
@ -301,7 +301,7 @@ public class ViewPagerActivity extends SimpleActivity
}
private void editMedium() {
new RenameItemDialog(this, getCurrentFile(), new RenameItemDialog.OnRenameItemListener() {
new RenameFileDialog(this, getCurrentFile(), new RenameFileDialog.OnRenameItemListener() {
@Override
public void onRenameSuccess(@NotNull File newFile) {
mMedia.get(mPager.getCurrentItem()).setPath(newFile.getAbsolutePath());

View File

@ -12,7 +12,7 @@ import com.simplemobiletools.gallery.extensions.value
import kotlinx.android.synthetic.main.rename_file.view.*
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 {
val context = activity