mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-23 00:13:16 +00:00
utils: アプリのコンテキストを取得するようにした
This commit is contained in:
parent
6f3639702a
commit
2b97ecf1fd
|
@ -1,10 +1,18 @@
|
||||||
package one.nem.lacerta.utils.impl;
|
package one.nem.lacerta.utils.impl;
|
||||||
|
|
||||||
|
import android.content.Context;
|
||||||
|
|
||||||
import java.nio.file.Path;
|
import java.nio.file.Path;
|
||||||
|
|
||||||
|
import dagger.hilt.android.qualifiers.ApplicationContext;
|
||||||
import one.nem.lacerta.utils.repository.DeviceInfoUtils;
|
import one.nem.lacerta.utils.repository.DeviceInfoUtils;
|
||||||
public class DeviceInfoUtilsImpl implements DeviceInfoUtils {
|
public class DeviceInfoUtilsImpl implements DeviceInfoUtils {
|
||||||
|
|
||||||
|
private final Context applicationContext;
|
||||||
|
|
||||||
|
public DeviceInfoUtilsImpl(@ApplicationContext Context applicationContext) {
|
||||||
|
this.applicationContext = applicationContext;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Path getExternalStorageDirectory() {
|
public Path getExternalStorageDirectory() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user