change password

This commit is contained in:
Gracia Hotmauli
2025-08-23 09:09:35 +07:00
parent 1d9399fd4d
commit 1eb135d48e
5 changed files with 13 additions and 5 deletions

View File

@ -39,6 +39,12 @@ class ChangePasswordActivity : AppCompatActivity() {
sessionManager = SessionManager(this)
binding.header.headerTitle.text = "Ubah Kata Sandi"
binding.header.headerLeftIcon.setOnClickListener {
onBackPressedDispatcher.onBackPressed()
finish()
}
// Listen for the result of the password change
viewModel.changePasswordResult.observe(this, Observer { result ->
when (result) {

View File

@ -115,7 +115,9 @@ class ProfileFragment : Fragment() {
when (store.approvalStatus) {
"process" -> startActivity(Intent(requireContext(), StoreOnReviewActivity::class.java))
"rejected" -> startActivity(
Intent(requireContext(), RegisterStoreActivity::class.java).putExtra("REAPPLY", true))
Intent(requireContext(), RegisterStoreActivity::class.java)
.putExtra("REAPPLY", true)
)
else -> {
when(store.storeStatus){
"suspended" -> startActivity(Intent(requireContext(), StoreSuspendedActivity::class.java))

View File

@ -10,7 +10,7 @@
tools:context=".ui.profile.ChangePasswordActivity">
<include
android:id="@+id/headerStoreProduct"
android:id="@+id/header"
layout="@layout/header" />
<androidx.constraintlayout.widget.ConstraintLayout