From f25e015f2741649a0e429bacbb19e1e7b177067b Mon Sep 17 00:00:00 2001 From: cloudroam <cloudroam> Date: 星期一, 24 三月 2025 18:53:48 +0800 Subject: [PATCH] fix 123 --- app/src/main/java/com/example/firstapp/ui/reminder/ReminderSettingsFragment.kt | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/example/firstapp/ui/reminder/ReminderSettingsFragment.kt b/app/src/main/java/com/example/firstapp/ui/reminder/ReminderSettingsFragment.kt index 5b26509..99f23a4 100644 --- a/app/src/main/java/com/example/firstapp/ui/reminder/ReminderSettingsFragment.kt +++ b/app/src/main/java/com/example/firstapp/ui/reminder/ReminderSettingsFragment.kt @@ -7,6 +7,7 @@ import android.view.ViewGroup import android.widget.ArrayAdapter import android.widget.Toast +import androidx.appcompat.app.AppCompatActivity import androidx.fragment.app.Fragment import androidx.fragment.app.viewModels import androidx.navigation.fragment.findNavController @@ -38,6 +39,8 @@ override fun onViewCreated(view: View, savedInstanceState: Bundle?) { super.onViewCreated(view, savedInstanceState) + (activity as AppCompatActivity).supportActionBar?.setDisplayHomeAsUpEnabled(true) + setupSpinner() setupRecyclerView() setupClickListeners() @@ -62,9 +65,9 @@ } private fun setupClickListeners() { - binding.btnClose.setOnClickListener { - findNavController().navigateUp() - } +// binding.btnClose.setOnClickListener { +// findNavController().navigateUp() +// } binding.btnAddReminder.setOnClickListener { val type = binding.spinnerType.selectedItem.toString() -- Gitblit v1.9.3