feat:恢复支付密码设置功能
This commit is contained in:
@@ -82,6 +82,7 @@ class SettingActivity : BaseViewBindingActivity<ActivitySettingBinding>(), View.
|
||||
binding.tvShieldManager.setOnClickListener(this)
|
||||
binding.rlyPermission.setOnClickListener(this)
|
||||
binding.tvLanugage.setOnClickListener(this)
|
||||
binding.rlyPayPwd.setOnClickListener(this)
|
||||
|
||||
if (BuildConfig.DEBUG) {
|
||||
binding.titleBar.setOnTitleClickListener {
|
||||
@@ -123,6 +124,13 @@ class SettingActivity : BaseViewBindingActivity<ActivitySettingBinding>(), View.
|
||||
R.id.rly_update -> startActivity(Intent(applicationContext, AboutActivity::class.java))
|
||||
R.id.tv_black_manager -> BlackListManageActivity.start(this)
|
||||
R.id.rly_login_pwd -> ModifyPwdActivity.start(this, ModifyPwdActivity.LOGIN_PWD)
|
||||
R.id.rly_pay_pwd-> {
|
||||
if (UserModel.get().cacheLoginUserInfo == null) {
|
||||
toast(ResUtil.getString(R.string.ui_setting_settingactivity_06))
|
||||
return
|
||||
}
|
||||
ModifyPwdActivity.start(this, ModifyPwdActivity.PAY_PWD)
|
||||
}
|
||||
R.id.btn_login_out -> {
|
||||
val cacheLoginUserInfo = UserModel.get().cacheLoginUserInfo ?: return
|
||||
if (!cacheLoginUserInfo.isBindPasswd && !SPUtils.getBoolean(
|
||||
|
@@ -94,6 +94,49 @@
|
||||
android:layout_marginEnd="15dp"
|
||||
android:background="@color/line_353548" />
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/rly_pay_pwd"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:clickable="true"
|
||||
android:focusable="true">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginStart="@dimen/dp_15"
|
||||
android:text="@string/text_setting_pay_password"
|
||||
android:textColor="@color/text_title_color"
|
||||
android:textSize="@dimen/sp_14" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_pay_pwd_arrow"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginEnd="@dimen/dp_15"
|
||||
android:src="@drawable/arrow_right" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_pay_modify"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginEnd="@dimen/dp_14"
|
||||
android:layout_toStartOf="@id/iv_pay_pwd_arrow"
|
||||
android:text="@string/text_modify"
|
||||
android:textColor="@color/text_normal_c6c6e9"
|
||||
android:textSize="12sp" />
|
||||
</RelativeLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1px"
|
||||
android:layout_marginStart="@dimen/dp_15"
|
||||
android:layout_marginEnd="15dp"
|
||||
android:background="@color/line_353548" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_notice_setting"
|
||||
|
Reference in New Issue
Block a user