From 8441b88ab3b972acf49ce940dac5cb5115569e92 Mon Sep 17 00:00:00 2001 From: r-ca Date: Mon, 25 Dec 2023 11:46:54 +0900 Subject: [PATCH] =?UTF-8?q?save/load/remove=E3=82=92=E8=BF=BD=E5=8A=A0=20I?= =?UTF-8?q?mpl=20WIP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/one/nem/lacerta/source/file/FileManager.java | 2 +- .../one/nem/lacerta/source/file/impl/FileManagerImpl.java | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/source/src/main/java/one/nem/lacerta/source/file/FileManager.java b/source/src/main/java/one/nem/lacerta/source/file/FileManager.java index 6721c12b..d3951a7e 100644 --- a/source/src/main/java/one/nem/lacerta/source/file/FileManager.java +++ b/source/src/main/java/one/nem/lacerta/source/file/FileManager.java @@ -16,7 +16,7 @@ public interface FileManager { void createDir(String dirName); void removeDir(String dirName); - void saveBitmap(Path path, Bitmap bitmap); + void saveBitmapAtCurrent(Bitmap bitmap, String fileName); Bitmap loadBitmap(Path path); void removeBitmap(Path path); diff --git a/source/src/main/java/one/nem/lacerta/source/file/impl/FileManagerImpl.java b/source/src/main/java/one/nem/lacerta/source/file/impl/FileManagerImpl.java index e40a5551..fada1148 100644 --- a/source/src/main/java/one/nem/lacerta/source/file/impl/FileManagerImpl.java +++ b/source/src/main/java/one/nem/lacerta/source/file/impl/FileManagerImpl.java @@ -2,6 +2,7 @@ package one.nem.lacerta.source.file.impl; import android.graphics.Bitmap; +import java.io.File; import java.io.IOException; import java.nio.file.DirectoryStream; import java.nio.file.Files; @@ -84,7 +85,8 @@ public class FileManagerImpl implements FileManager { } @Override - public void saveBitmap(Path path, Bitmap bitmap) { + public void saveBitmapAtCurrent(Bitmap bitmap, String fileName) { + this.currentDir } @Override