From 1682e06d24a96d01fff8304322909615103d8a2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=8D=E3=82=80=E3=81=AD=E3=81=93?= Date: Tue, 12 Dec 2023 10:47:13 +0900 Subject: [PATCH] =?UTF-8?q?Internal=20Utils=E3=82=92=E9=80=9A=E3=81=97?= =?UTF-8?q?=E3=81=A6=E3=83=87=E3=83=BC=E3=82=BF=E3=82=92=E8=BF=94=E3=81=99?= =?UTF-8?q?=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/one/nem/lacerta/data/impl/CommonsImpl.java | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/data/src/main/java/one/nem/lacerta/data/impl/CommonsImpl.java b/data/src/main/java/one/nem/lacerta/data/impl/CommonsImpl.java index 60a40246..8980fe38 100644 --- a/data/src/main/java/one/nem/lacerta/data/impl/CommonsImpl.java +++ b/data/src/main/java/one/nem/lacerta/data/impl/CommonsImpl.java @@ -10,22 +10,19 @@ import javax.inject.Inject; import dagger.hilt.android.qualifiers.ApplicationContext; import one.nem.lacerta.data.repository.Commons; +import one.nem.lacerta.data.utils.UtilsRepo; // Internal Utils Repo + public class CommonsImpl implements Commons{ - private final Context applicationContext; - @Inject - public CommonsImpl(@ApplicationContext Context applicationContext) { - this.applicationContext = applicationContext; - } - + UtilsRepo utilsRepo; public Path getExternalFilesDirPath(String type) { - return Objects.requireNonNull(applicationContext.getExternalFilesDir(type)).toPath(); + return utilsRepo.getExternalFilesDirPath(type); } public Path getExternalFilesDirPath() { - return Objects.requireNonNull(applicationContext.getExternalFilesDir(null)).toPath(); + return utilsRepo.getExternalFilesDirPath(); } }