mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-22 16:03: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 javax.inject.Inject;
|
||||
|
||||
import dagger.hilt.android.qualifiers.ApplicationContext;
|
||||
import one.nem.lacerta.utils.repository.DeviceInfoUtils;
|
||||
public class DeviceInfoUtilsImpl implements DeviceInfoUtils {
|
||||
|
||||
private final Context applicationContext;
|
||||
|
||||
@Inject
|
||||
public DeviceInfoUtilsImpl(@ApplicationContext Context applicationContext) {
|
||||
this.applicationContext = applicationContext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Path getExternalStorageDirectory() {
|
||||
return null;
|
||||
return
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue
Block a user