mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
allow renaming the directories
This commit is contained in:
14
app/src/main/java/com/simplemobiletools/gallery/Utils.java
Normal file
14
app/src/main/java/com/simplemobiletools/gallery/Utils.java
Normal 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();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user