mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-26 09:43:15 +00:00
utils: アプリのコンテキストを取得するようにした(アノテーション忘れ)
This commit is contained in:
parent
2b97ecf1fd
commit
2155edd15f
|
@ -4,19 +4,22 @@ import android.content.Context;
|
||||||
|
|
||||||
import java.nio.file.Path;
|
import java.nio.file.Path;
|
||||||
|
|
||||||
|
import javax.inject.Inject;
|
||||||
|
|
||||||
import dagger.hilt.android.qualifiers.ApplicationContext;
|
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;
|
private final Context applicationContext;
|
||||||
|
|
||||||
|
@Inject
|
||||||
public DeviceInfoUtilsImpl(@ApplicationContext Context applicationContext) {
|
public DeviceInfoUtilsImpl(@ApplicationContext Context applicationContext) {
|
||||||
this.applicationContext = applicationContext;
|
this.applicationContext = applicationContext;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Path getExternalStorageDirectory() {
|
public Path getExternalStorageDirectory() {
|
||||||
return null;
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue
Block a user