When account exists or not, enable or disable on main thread the button "create wallet"
This commit is contained in:
parent
fefe7d054b
commit
054f062ce1
1 changed files with 10 additions and 4 deletions
|
@ -23,6 +23,8 @@ import cy.agorise.crystalwallet.views.natives.CustomTextInputEditText
|
||||||
import kotlinx.android.synthetic.main.create_seed.*
|
import kotlinx.android.synthetic.main.create_seed.*
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This activity creates a new account with some security concerns
|
* This activity creates a new account with some security concerns
|
||||||
* */
|
* */
|
||||||
|
@ -283,15 +285,19 @@ class CreateSeedActivity : CustomActivity() {
|
||||||
* Enable create button
|
* Enable create button
|
||||||
* */
|
* */
|
||||||
private fun enableCreate() {
|
private fun enableCreate() {
|
||||||
btnCreate?.setEnabled(true)
|
runOnUiThread(Runnable {
|
||||||
btnCreate?.setBackgroundColor(resources.getColor(R.color.colorPrimary))
|
btnCreate?.setBackgroundColor(resources.getColor(R.color.colorPrimary))
|
||||||
|
btnCreate?.setEnabled(true)
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Disable create button
|
* Disable create button
|
||||||
* */
|
* */
|
||||||
private fun disableCreate() {
|
private fun disableCreate() {
|
||||||
btnCreate?.setEnabled(false)
|
runOnUiThread(Runnable {
|
||||||
btnCreate?.setBackground(resources.getDrawable(R.drawable.disable_style))
|
btnCreate?.setEnabled(false)
|
||||||
|
btnCreate?.setBackground(resources.getDrawable(R.drawable.disable_style))
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue