Skip to content

Commit

Permalink
Moving screen updates from 300ms to 500ms to avoid triggering updates…
Browse files Browse the repository at this point in the history
… while animations are running.
  • Loading branch information
vitorpamplona committed Jul 1, 2023
1 parent d179c93 commit cd9465c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/src/main/java/com/vitorpamplona/amethyst/model/Note.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/com/vitorpamplona/amethyst/model/User.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit cd9465c

Please sign in to comment.