utils: アプリのコンテキストを取得するようにした(アノテーション忘れ)

This commit is contained in:
r-ca 2023-12-14 03:17:26 +09:00
parent 2b97ecf1fd
commit 2155edd15f
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -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