- Initialize account's status dot to yellow, when Register is checked at
Account activity.
This commit is contained in:
@@ -301,7 +301,10 @@ class AccountActivity : AppCompatActivity() {
|
|||||||
|
|
||||||
var newRegint = -1
|
var newRegint = -1
|
||||||
if (regCheck.isChecked) {
|
if (regCheck.isChecked) {
|
||||||
if (acc.regint != 3600) newRegint = 3600
|
if (acc.regint != 3600) {
|
||||||
|
newRegint = 3600
|
||||||
|
UserAgent.updateStatus(ua, R.drawable.dot_yellow)
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
if (acc.regint != 0) {
|
if (acc.regint != 0) {
|
||||||
Api.ua_unregister(ua.uap)
|
Api.ua_unregister(ua.uap)
|
||||||
|
|||||||
Reference in New Issue
Block a user