mirror of
				https://github.com/lacerta-doc/Lacerta.git
				synced 2025-09-09 12:09:25 +00:00 
			
		
		
		
	アンコメント
This commit is contained in:
		
							parent
							
								
									12cba0242b
								
							
						
					
					
						commit
						173e91f461
					
				| 
						 | 
					@ -1,70 +1,70 @@
 | 
				
			||||||
//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 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 one.nem.lacerta.data.repository.Documents;
 | 
					import one.nem.lacerta.data.repository.Documents;
 | 
				
			||||||
//
 | 
					
 | 
				
			||||||
//import one.nem.lacerta.data.repository.SharedPref;
 | 
					import one.nem.lacerta.data.repository.SharedPref;
 | 
				
			||||||
//
 | 
					
 | 
				
			||||||
//import one.nem.lacerta.data.model.shared_pref.enums.SharedPrefType;
 | 
					import one.nem.lacerta.data.model.shared_pref.enums.SharedPrefType;
 | 
				
			||||||
//
 | 
					
 | 
				
			||||||
//import one.nem.lacerta.source.db.LacertaDatabase;
 | 
					import one.nem.lacerta.source.db.LacertaDatabase;
 | 
				
			||||||
//
 | 
					
 | 
				
			||||||
//import javax.inject.Inject;
 | 
					import javax.inject.Inject;
 | 
				
			||||||
//
 | 
					
 | 
				
			||||||
//import dagger.hilt.android.AndroidEntryPoint;
 | 
					import dagger.hilt.android.AndroidEntryPoint;
 | 
				
			||||||
//
 | 
					
 | 
				
			||||||
//@AndroidEntryPoint // HiltのDIを有効にするアノテーション
 | 
					@AndroidEntryPoint // HiltのDIを有効にするアノテーション
 | 
				
			||||||
//public class DebugPlayGroundFragment extends Fragment {
 | 
					public class DebugPlayGroundFragment extends Fragment {
 | 
				
			||||||
//
 | 
					
 | 
				
			||||||
//    @Inject // DI
 | 
					    @Inject // DI
 | 
				
			||||||
//    Documents documents;
 | 
					    Documents documents;
 | 
				
			||||||
//
 | 
					
 | 
				
			||||||
//    @Inject // DI
 | 
					    @Inject // DI
 | 
				
			||||||
//    SharedPref sharedPref;
 | 
					    SharedPref sharedPref;
 | 
				
			||||||
//
 | 
					
 | 
				
			||||||
//    @Inject
 | 
					    @Inject
 | 
				
			||||||
//    LacertaDatabase lacertaDatabase; // TODO-rca: Repositoryを噛ませる
 | 
					    LacertaDatabase lacertaDatabase; // TODO-rca: Repositoryを噛ませる
 | 
				
			||||||
//
 | 
					
 | 
				
			||||||
//    public DebugPlayGroundFragment() {
 | 
					    public DebugPlayGroundFragment() {
 | 
				
			||||||
//        // Required empty public constructor
 | 
					        // Required empty public constructor
 | 
				
			||||||
//    }
 | 
					    }
 | 
				
			||||||
//
 | 
					
 | 
				
			||||||
//    public static DebugPlayGroundFragment newInstance() {
 | 
					    public static DebugPlayGroundFragment newInstance() {
 | 
				
			||||||
//        DebugPlayGroundFragment fragment = new DebugPlayGroundFragment();
 | 
					        DebugPlayGroundFragment fragment = new DebugPlayGroundFragment();
 | 
				
			||||||
//        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_play_ground, container, false);
 | 
					        return inflater.inflate(R.layout.fragment_debug_play_ground, 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);
 | 
				
			||||||
//
 | 
					
 | 
				
			||||||
//        // ここがいままでのonCreateと同等のものです。
 | 
					        // ここがいままでのonCreateと同等のものです。
 | 
				
			||||||
//        // findViewById(R.id.hoge)とかは view.findViewById(R.id.hoge) と書き換える必要アリ
 | 
					        // findViewById(R.id.hoge)とかは view.findViewById(R.id.hoge) と書き換える必要アリ
 | 
				
			||||||
//        // (viewは引数として受け取ってるviewなので、別メソッドに切り出したりするなら渡してあげる)
 | 
					        // (viewは引数として受け取ってるviewなので、別メソッドに切り出したりするなら渡してあげる)
 | 
				
			||||||
//
 | 
					
 | 
				
			||||||
//        // ShardPrefの要素数をトーストする例
 | 
					        // ShardPrefの要素数をトーストする例
 | 
				
			||||||
//        Toast.makeText(getContext(), "DBの要素数" + lacertaDatabase.repositoriesDao(), Toast.LENGTH_SHORT).show();
 | 
					        Toast.makeText(getContext(), "DBの要素数" + lacertaDatabase.repositoriesDao(), Toast.LENGTH_SHORT).show();
 | 
				
			||||||
//    }
 | 
					    }
 | 
				
			||||||
//}
 | 
					}
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user