mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2026-11-02 19:47:36 +00:00
デバッグメニューのパス取得ボタンで直接呼び出すようにしてみた
This commit is contained in:
1 file changed
+4
-1
@@ -18,6 +18,8 @@ import javax.inject.Inject;
|
||||
|
||||
import one.nem.lacerta.data.repository.DeviceMeta;
|
||||
|
||||
import one.nem.lacerta.utils.repository.DeviceInfoUtils;
|
||||
|
||||
|
||||
/**
|
||||
* A simple {@link Fragment} subclass.
|
||||
@@ -32,6 +34,7 @@ public class DebugMenuFragment extends Fragment {
|
||||
DeviceMeta deviceMeta;
|
||||
|
||||
@Inject
|
||||
DeviceInfoUtils deviceInfoUtils;
|
||||
|
||||
|
||||
public DebugMenuFragment() {
|
||||
@@ -80,7 +83,7 @@ public class DebugMenuFragment extends Fragment {
|
||||
});
|
||||
|
||||
view.findViewById(R.id.btn_debug_menu_get_external_path).setOnClickListener( v -> {
|
||||
Toast.makeText(getContext(), getContext().getExternalFilesDir(null).toPath().toString(), Toast.LENGTH_SHORT).show();
|
||||
Toast.makeText(getContext(), deviceInfoUtils.getExternalStorageDirectory().toString(), Toast.LENGTH_SHORT).show();
|
||||
});
|
||||
|
||||
view.findViewById(R.id.btn_debug_menu_file_write_test).setOnClickListener( v -> {
|
||||
|
||||
Reference in new issue
Block a user