From 080f11c3e77dc57076665bbd1d4f8802283227a1 Mon Sep 17 00:00:00 2001 From: r-ca Date: Thu, 14 Dec 2023 03:44:07 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=93=E3=83=AB=E3=83=89=E3=81=A7=E3=81=8D?= =?UTF-8?q?=E3=81=AA=E3=81=84=E3=81=AE=E3=81=A7=E4=B8=80=E6=97=A6=E3=82=B3?= =?UTF-8?q?=E3=83=A1=E3=83=B3=E3=83=88=E3=82=A2=E3=82=A6=E3=83=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DebugRepositoryDebuggerFragment.java | 152 +++++++++--------- 1 file changed, 76 insertions(+), 76 deletions(-) diff --git a/feature/debug/src/main/java/one/nem/lacerta/feature/debug/DebugRepositoryDebuggerFragment.java b/feature/debug/src/main/java/one/nem/lacerta/feature/debug/DebugRepositoryDebuggerFragment.java index 93b7a399..11b3e2de 100644 --- a/feature/debug/src/main/java/one/nem/lacerta/feature/debug/DebugRepositoryDebuggerFragment.java +++ b/feature/debug/src/main/java/one/nem/lacerta/feature/debug/DebugRepositoryDebuggerFragment.java @@ -1,76 +1,76 @@ -package one.nem.lacerta.feature.debug; - -import android.os.Bundle; - -import androidx.fragment.app.Fragment; - -import android.view.LayoutInflater; -import android.view.View; -import android.view.ViewGroup; -import android.widget.EditText; -import android.widget.Toast; - -import org.eclipse.jgit.lib.Repository; -import org.intellij.lang.annotations.JdkConstants; - -import java.util.UUID; - -import javax.inject.Inject; - -import dagger.hilt.android.AndroidEntryPoint; - -import one.nem.lacerta.data.repository.DebugFunc; - -/** - * A simple {@link Fragment} subclass. - * Use the {@link DebugRepositoryDebuggerFragment#newInstance} factory method to - * create an instance of this fragment. - */ - -@AndroidEntryPoint -public class DebugRepositoryDebuggerFragment extends Fragment { - - @Inject - DebugFunc debugFunc; - - public DebugRepositoryDebuggerFragment() { - // Required empty public constructor - } - - public static DebugRepositoryDebuggerFragment newInstance() { - DebugRepositoryDebuggerFragment fragment = new DebugRepositoryDebuggerFragment(); - Bundle args = new Bundle(); - fragment.setArguments(args); - return fragment; - } - - @Override - public void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - } - - @Override - public View onCreateView(LayoutInflater inflater, ViewGroup container, - Bundle savedInstanceState) { - // Inflate the layout for this fragment - return inflater.inflate(R.layout.fragment_debug_repository_debugger, container, false); - } - - @Override - public void onViewCreated(View view, Bundle savedInstanceState) { - super.onViewCreated(view, savedInstanceState); - - EditText editTextRepoId = view.findViewById(R.id.editTextRepoId); - - view.findViewById(R.id.buttonGenerateRepoId).setOnClickListener(v -> { - editTextRepoId.setText(UUID.randomUUID().toString()); //Generate random UUID - Toast.makeText(getContext(), "Generated random UUID", Toast.LENGTH_SHORT).show(); - }); - - view.findViewById(R.id.buttonGetCreateRepository).setOnClickListener(v -> { - String repoId = editTextRepoId.getText().toString(); - Repository repo = debugFunc.getOrCreateRepositoryById(repoId); - Toast.makeText(getContext(), "Get or create repository: " + repoId, Toast.LENGTH_SHORT).show(); - }); - } -} \ No newline at end of file +//package one.nem.lacerta.feature.debug; +// +//import android.os.Bundle; +// +//import androidx.fragment.app.Fragment; +// +//import android.view.LayoutInflater; +//import android.view.View; +//import android.view.ViewGroup; +//import android.widget.EditText; +//import android.widget.Toast; +// +//import org.eclipse.jgit.lib.Repository; +//import org.intellij.lang.annotations.JdkConstants; +// +//import java.util.UUID; +// +//import javax.inject.Inject; +// +//import dagger.hilt.android.AndroidEntryPoint; +// +//import one.nem.lacerta.data.repository.DebugFunc; +// +///** +// * A simple {@link Fragment} subclass. +// * Use the {@link DebugRepositoryDebuggerFragment#newInstance} factory method to +// * create an instance of this fragment. +// */ +// +//@AndroidEntryPoint +//public class DebugRepositoryDebuggerFragment extends Fragment { +// +// @Inject +// DebugFunc debugFunc; +// +// public DebugRepositoryDebuggerFragment() { +// // Required empty public constructor +// } +// +// public static DebugRepositoryDebuggerFragment newInstance() { +// DebugRepositoryDebuggerFragment fragment = new DebugRepositoryDebuggerFragment(); +// Bundle args = new Bundle(); +// fragment.setArguments(args); +// return fragment; +// } +// +// @Override +// public void onCreate(Bundle savedInstanceState) { +// super.onCreate(savedInstanceState); +// } +// +// @Override +// public View onCreateView(LayoutInflater inflater, ViewGroup container, +// Bundle savedInstanceState) { +// // Inflate the layout for this fragment +// return inflater.inflate(R.layout.fragment_debug_repository_debugger, container, false); +// } +// +// @Override +// public void onViewCreated(View view, Bundle savedInstanceState) { +// super.onViewCreated(view, savedInstanceState); +// +// EditText editTextRepoId = view.findViewById(R.id.editTextRepoId); +// +// view.findViewById(R.id.buttonGenerateRepoId).setOnClickListener(v -> { +// editTextRepoId.setText(UUID.randomUUID().toString()); //Generate random UUID +// Toast.makeText(getContext(), "Generated random UUID", Toast.LENGTH_SHORT).show(); +// }); +// +// view.findViewById(R.id.buttonGetCreateRepository).setOnClickListener(v -> { +// String repoId = editTextRepoId.getText().toString(); +// Repository repo = debugFunc.getOrCreateRepositoryById(repoId); +// Toast.makeText(getContext(), "Get or create repository: " + repoId, Toast.LENGTH_SHORT).show(); +// }); +// } +//} \ No newline at end of file