allow renaming the directories

This commit is contained in:
tibbi
2016-03-07 21:41:55 +01:00
parent e4127b61d9
commit f626ee1843
11 changed files with 120 additions and 20 deletions

View File

@ -0,0 +1,14 @@
package com.simplemobiletools.gallery;
import android.content.Context;
import android.widget.Toast;
public class Utils {
public static String getFilename(final String path) {
return path.substring(path.lastIndexOf("/") + 1);
}
public static void showToast(Context context, int resId) {
Toast.makeText(context, context.getResources().getString(resId), Toast.LENGTH_SHORT).show();
}
}