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
6f3639702a
commit
2b97ecf1fd
|
@ -1,10 +1,18 @@
|
|||
package one.nem.lacerta.utils.impl;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import java.nio.file.Path;
|
||||
|
||||
import dagger.hilt.android.qualifiers.ApplicationContext;
|
||||
import one.nem.lacerta.utils.repository.DeviceInfoUtils;
|
||||
public class DeviceInfoUtilsImpl implements DeviceInfoUtils {
|
||||
|
||||
private final Context applicationContext;
|
||||
|
||||
public DeviceInfoUtilsImpl(@ApplicationContext Context applicationContext) {
|
||||
this.applicationContext = applicationContext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Path getExternalStorageDirectory() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user