Онбординг: отдельный экран биометрии, новый UI пароля (Telegram-style), Skip на всех шагах. Биометрия per-account. Навбар плавно анимируется при смене темы. Поиск: аватарки в результатах. Профиль: клавиатура прячется при скролле. Фокус сбрасывается при навигации.
This commit is contained in:
@@ -1037,6 +1037,12 @@ fun MainScreen(
|
||||
// Anti-spam: do not stack duplicate screens from rapid taps.
|
||||
if (navStack.lastOrNull() == screen) return
|
||||
if (screen is Screen.Requests && navStack.any { it is Screen.Requests }) return
|
||||
// Hide keyboard and clear focus when navigating to any screen
|
||||
(context as? android.app.Activity)?.currentFocus?.let { focusedView ->
|
||||
val imm = context.getSystemService(android.content.Context.INPUT_METHOD_SERVICE) as android.view.inputmethod.InputMethodManager
|
||||
imm.hideSoftInputFromWindow(focusedView.windowToken, 0)
|
||||
focusedView.clearFocus()
|
||||
}
|
||||
navStack = navStack + screen
|
||||
}
|
||||
fun isCurrentAccountUser(user: SearchUser): Boolean {
|
||||
@@ -1768,7 +1774,7 @@ fun MainScreen(
|
||||
accountPublicKey,
|
||||
encryptedPassword
|
||||
)
|
||||
biometricPrefs.enableBiometric()
|
||||
biometricPrefs.enableBiometric(accountPublicKey)
|
||||
onSuccess()
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user