This commit is contained in:
mohamedkaif356
2023-10-04 13:49:24 +05:30
parent a239cd882f
commit 8dcec7bb3f
3 changed files with 30 additions and 44 deletions

View File

@@ -43,21 +43,6 @@ class UserListFragment : BaseFragment() {
sharedPreference = requireContext().getSharedPreferences("PREFERENCE_NAME", Context.MODE_PRIVATE)
setupViews()
return binding.root
//
// val view = inflater.inflate(R.layout.fragment_user_list, container, false)
//
// val crashButton = Button(requireContext())
// crashButton.text = "Test Crash"
// crashButton.setOnClickListener {
// throw RuntimeException("Test Crash") // Force a crash
// }
//
// val layout = view.findViewById<ViewGroup>(R.id.fragment_layout)
// layout.addView(crashButton, ViewGroup.LayoutParams(
// ViewGroup.LayoutParams.MATCH_PARENT,
// ViewGroup.LayoutParams.WRAP_CONTENT))
//
// return view
}
override fun onResume() {