mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-22 01:40:07 +01:00
Standardize internal UI state property naming.
This commit is contained in:
committed by
Greyson Parrelli
parent
d4c266561f
commit
e235ce52e5
@@ -243,8 +243,8 @@ class RegistrationViewModel : ViewModel() {
|
||||
}
|
||||
|
||||
fun togglePinKeyboardType() {
|
||||
store.update { previousState ->
|
||||
previousState.copy(pinKeyboardType = previousState.pinKeyboardType.other)
|
||||
store.update {
|
||||
it.copy(pinKeyboardType = it.pinKeyboardType.other)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -31,8 +31,8 @@ class ReRegisterWithPinViewModel : ViewModel() {
|
||||
}
|
||||
|
||||
fun toggleKeyboardType() {
|
||||
store.update { previousState ->
|
||||
previousState.copy(pinKeyboardType = previousState.pinKeyboardType.other)
|
||||
store.update {
|
||||
it.copy(pinKeyboardType = it.pinKeyboardType.other)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user