Moving screen updates from 300ms to 500ms to avoid triggering updates while animations are running.

This commit is contained in:
Vitor Pamplona
2023-07-01 11:52:40 -04:00
parent d179c93c0b
commit cd9465c0e7
2 changed files with 2 additions and 2 deletions
@@ -502,7 +502,7 @@ class NoteLiveSet(u: Note) {
class NoteLiveData(val note: Note) : LiveData<NoteState>(NoteState(note)) {
// Refreshes observers in batches.
private val bundler = BundledUpdate(300, Dispatchers.IO)
private val bundler = BundledUpdate(500, Dispatchers.IO)
fun invalidateData() {
bundler.invalidate() {
@@ -459,7 +459,7 @@ class UserMetadata {
class UserLiveData(val user: User) : LiveData<UserState>(UserState(user)) {
// Refreshes observers in batches.
private val bundler = BundledUpdate(300, Dispatchers.IO)
private val bundler = BundledUpdate(500, Dispatchers.IO)
fun invalidateData() {
bundler.invalidate() {