|
@@ -93,6 +93,9 @@ class SimpleProcessActivity : BaseActivity<ActivitySimpleProcessBinding>() {
|
|
|
mStepList[i].visibility = View.GONE
|
|
mStepList[i].visibility = View.GONE
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+ if (step == 3) {
|
|
|
|
|
+ updateSharedName()
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@@ -155,6 +158,30 @@ class SimpleProcessActivity : BaseActivity<ActivitySimpleProcessBinding>() {
|
|
|
mBinding?.ivShared1?.background = ContextCompat.getDrawable(this, R.mipmap.lock)
|
|
mBinding?.ivShared1?.background = ContextCompat.getDrawable(this, R.mipmap.lock)
|
|
|
mBinding?.ivShared2?.background = ContextCompat.getDrawable(this, R.mipmap.lock)
|
|
mBinding?.ivShared2?.background = ContextCompat.getDrawable(this, R.mipmap.lock)
|
|
|
}
|
|
}
|
|
|
|
|
+ updateSharedName()
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ private fun updateSharedName() {
|
|
|
|
|
+ val samName = getString(R.string.simple_colocker_sam)
|
|
|
|
|
+ val samStatus = PresentationManager.mLockerTogetherList.find { it.name == samName }?.status
|
|
|
|
|
+ val samText = when (samStatus) {
|
|
|
|
|
+ 1 -> getString(R.string.simple_colocker_sam, getString(R.string.simple_lock_shared))
|
|
|
|
|
+ 2 -> getString(R.string.simple_colocker_sam, getString(R.string.simple_lock_unlocked))
|
|
|
|
|
+ else -> getString(R.string.simple_colocker_sam, " ")
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ val robinName = getString(R.string.simple_colocker_robin)
|
|
|
|
|
+ val robinStatus = PresentationManager.mLockerTogetherList.find { it.name == robinName }?.status
|
|
|
|
|
+ val robinText = when (robinStatus) {
|
|
|
|
|
+ 1 -> getString(R.string.simple_colocker_robin, getString(R.string.simple_lock_shared))
|
|
|
|
|
+ 2 -> getString(R.string.simple_colocker_robin, getString(R.string.simple_lock_unlocked))
|
|
|
|
|
+ else -> getString(R.string.simple_colocker_robin, " ")
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ val text = "${getString(R.string.simple_wati_for_lock_share)}\n1. $samText\n2. $robinText"
|
|
|
|
|
+
|
|
|
|
|
+ mBinding?.tvLockShared1?.text = text
|
|
|
|
|
+ mBinding?.tvLockShared2?.text = text
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
override fun dispatchKeyEvent(event: KeyEvent): Boolean {
|
|
override fun dispatchKeyEvent(event: KeyEvent): Boolean {
|