mirror of
https://github.com/shaulascr/ecommerce_serang.git
synced 2025-12-15 15:41:02 +00:00
change password
This commit is contained in:
@ -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) {
|
||||
|
||||
@ -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))
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user