Revert "一旦コメントアウト"

This reverts commit c1ce3e0625.
This commit is contained in:
ろむねこ 2023-12-14 11:43:45 +09:00
parent c1ce3e0625
commit cda0974d99
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168

View File

@ -1,105 +1,105 @@
//package one.nem.lacerta.feature.debug; package one.nem.lacerta.feature.debug;
//
//import android.os.Bundle; import android.os.Bundle;
//
//import androidx.fragment.app.Fragment; import androidx.fragment.app.Fragment;
//import androidx.navigation.Navigation; import androidx.navigation.Navigation;
//
//import android.view.LayoutInflater; import android.view.LayoutInflater;
//import android.view.View; import android.view.View;
//import android.view.ViewGroup; import android.view.ViewGroup;
//import android.widget.Toast; import android.widget.Toast;
//
//import java.io.File; import java.io.File;
//import java.io.IOException; import java.io.IOException;
//
//import dagger.hilt.android.AndroidEntryPoint; import dagger.hilt.android.AndroidEntryPoint;
//import javax.inject.Inject; import javax.inject.Inject;
//
//import one.nem.lacerta.utils.repository.DeviceInfoUtils; import one.nem.lacerta.utils.repository.DeviceInfoUtils;
//
//import one.nem.lacerta.data.Document; import one.nem.lacerta.data.Document;
//
//
///** /**
// * A simple {@link Fragment} subclass. * A simple {@link Fragment} subclass.
// * Use the {@link DebugMenuFragment#newInstance} factory method to * Use the {@link DebugMenuFragment#newInstance} factory method to
// * create an instance of this fragment. * create an instance of this fragment.
// */ */
//
//@AndroidEntryPoint @AndroidEntryPoint
//public class DebugMenuFragment extends Fragment { public class DebugMenuFragment extends Fragment {
// @Inject @Inject
// DeviceInfoUtils deviceInfoUtils; DeviceInfoUtils deviceInfoUtils;
//
//
// public DebugMenuFragment() { public DebugMenuFragment() {
// // Required empty public constructor // Required empty public constructor
// } }
//
// public static DebugMenuFragment newInstance() { public static DebugMenuFragment newInstance() {
// DebugMenuFragment fragment = new DebugMenuFragment(); DebugMenuFragment fragment = new DebugMenuFragment();
// Bundle args = new Bundle(); Bundle args = new Bundle();
// fragment.setArguments(args); fragment.setArguments(args);
// return fragment; return fragment;
// } }
//
// @Override @Override
// public void onCreate(Bundle savedInstanceState) { public void onCreate(Bundle savedInstanceState) {
// super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
// } }
//
// @Override @Override
// public View onCreateView(LayoutInflater inflater, ViewGroup container, public View onCreateView(LayoutInflater inflater, ViewGroup container,
// Bundle savedInstanceState) { Bundle savedInstanceState) {
// // Inflate the layout for this fragment // Inflate the layout for this fragment
// return inflater.inflate(R.layout.fragment_debug_menu, container, false); return inflater.inflate(R.layout.fragment_debug_menu, container, false);
// } }
//
// @Override @Override
// public void onViewCreated(View view, Bundle savedInstanceState) { public void onViewCreated(View view, Bundle savedInstanceState) {
// super.onViewCreated(view, savedInstanceState); super.onViewCreated(view, savedInstanceState);
//
// view.findViewById(R.id.btn_debug_menu_scan).setOnClickListener( v -> { view.findViewById(R.id.btn_debug_menu_scan).setOnClickListener( v -> {
// // スキャン機能呼び出し // スキャン機能呼び出し
// Toast.makeText(getContext(), "testMessage", Toast.LENGTH_SHORT).show(); Toast.makeText(getContext(), "testMessage", Toast.LENGTH_SHORT).show();
// }); });
//
// view.findViewById(R.id.btn_debug_menu_shared_pref_editor).setOnClickListener( v -> { view.findViewById(R.id.btn_debug_menu_shared_pref_editor).setOnClickListener( v -> {
// // Fragment移動 // Fragment移動
// Navigation.findNavController(view).navigate(R.id.action_debugMenuFragment_to_debugSharedPrefEditorFragment); Navigation.findNavController(view).navigate(R.id.action_debugMenuFragment_to_debugSharedPrefEditorFragment);
// }); });
//
// view.findViewById(R.id.btn_debug_menu_clear_pref).setOnClickListener( v -> { view.findViewById(R.id.btn_debug_menu_clear_pref).setOnClickListener( v -> {
// // SharedPrefClear // SharedPrefClear
// }); });
//
// view.findViewById(R.id.btn_debug_menu_call_play_ground).setOnClickListener( v -> { view.findViewById(R.id.btn_debug_menu_call_play_ground).setOnClickListener( v -> {
// Navigation.findNavController(view).navigate(R.id.action_debugMenuFragment_to_debugPlayGroundFragment); Navigation.findNavController(view).navigate(R.id.action_debugMenuFragment_to_debugPlayGroundFragment);
// }); });
//
// view.findViewById(R.id.btn_debug_menu_get_external_path).setOnClickListener( v -> { view.findViewById(R.id.btn_debug_menu_get_external_path).setOnClickListener( v -> {
// Toast.makeText(getContext(), deviceInfoUtils.getExternalStorageDirectory().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 -> { view.findViewById(R.id.btn_debug_menu_file_write_test).setOnClickListener( v -> {
// File file = getContext().getExternalFilesDir(null); File file = getContext().getExternalFilesDir(null);
// // ファイル書き込みテスト // ファイル書き込みテスト
// try { try {
// File testFile = new File(file, "test.txt"); File testFile = new File(file, "test.txt");
// testFile.createNewFile(); testFile.createNewFile();
// } catch (IOException e) { } catch (IOException e) {
// e.printStackTrace(); e.printStackTrace();
// } }
// }); });
//
// view.findViewById(R.id.btn_debug_menu_go_to_repository_debug).setOnClickListener(v -> { view.findViewById(R.id.btn_debug_menu_go_to_repository_debug).setOnClickListener(v -> {
// Navigation.findNavController(view).navigate(R.id.action_debugMenuFragment_to_debugRepositoryDebuggerFragment); Navigation.findNavController(view).navigate(R.id.action_debugMenuFragment_to_debugRepositoryDebuggerFragment);
// }); });
//
// view.findViewById(R.id.btn_debug_menu_insert_test_data).setOnClickListener(v -> { view.findViewById(R.id.btn_debug_menu_insert_test_data).setOnClickListener(v -> {
// Navigation.findNavController(view).navigate(R.id.action_debugMenuFragment_to_debugInsertTestDataFragment); Navigation.findNavController(view).navigate(R.id.action_debugMenuFragment_to_debugInsertTestDataFragment);
// } }
//
// } }
//} }