Use readable filename for save image
This commit is contained in:
1 parent
95bdb85609
commit
ad4206fb7e
5 files changed
+29
-1
No files matched your search
@@ -26,6 +26,8 @@ import com.hippo.image.Image;
|
||||
import com.hippo.unifile.UniFile;
|
||||
import com.hippo.yorozuya.SimpleHandler;
|
||||
|
||||
import java.util.Locale;
|
||||
|
||||
public class EhGalleryProvider extends GalleryProvider implements SpiderQueen.OnSpiderListener {
|
||||
|
||||
private final Context mContext;
|
||||
@@ -73,6 +75,12 @@ public class EhGalleryProvider extends GalleryProvider implements SpiderQueen.On
|
||||
}
|
||||
}
|
||||
|
||||
@NonNull
|
||||
@Override
|
||||
public String getImageFilename(int index) {
|
||||
return String.format(Locale.US, "%d-%08d", mGalleryInfo.gid, index + 1);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean save(int index, @NonNull UniFile file) {
|
||||
if (null != mSpiderQueen) {
|
||||
|
||||
Reference in new issue
Block a user