mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-08-22 05:50:11 +00:00
android, desktop, ios: show progress indicator after 0.5s
Accepting a request or joining a group usually takes longer than the previous 1s threshold, so the button looked inert for a second before anything acknowledged the tap - which is what prompts a second tap.
This commit is contained in:
@@ -41,7 +41,7 @@ extension View {
|
||||
}
|
||||
}
|
||||
|
||||
private let progressTimeout: UInt64 = 1_000_000000
|
||||
private let progressTimeout: UInt64 = 500_000000
|
||||
|
||||
extension Notification.Name {
|
||||
static let chatViewWillBeginScrolling = Notification.Name("chatWillBeginScrolling")
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ package chat.simplex.common.views.helpers
|
||||
import androidx.compose.runtime.*
|
||||
import kotlinx.coroutines.delay
|
||||
|
||||
private const val PROGRESS_TIMEOUT_MS = 1000L
|
||||
private const val PROGRESS_TIMEOUT_MS = 500L
|
||||
|
||||
@Composable
|
||||
fun ProgressByTimeoutEffect(inProgress: Boolean, setProgressByTimeout: (Boolean) -> Unit) {
|
||||
|
||||
Reference in New Issue
Block a user