Open Bug 1794210 Opened 3 years ago Updated 8 months ago

Syncing with debounce enabled on the AccountManager does not always invoke onIdle

Categories

(Firefox for Android :: Accounts and Sync, task)

All
Android
task

Tracking

()

People

(Reporter: jonalmeida, Unassigned)

Details

From github: https://github.com/mozilla-mobile/android-components/issues/6878.

Steps to reproduce

  1. Add an observer on the Account Manager:
    accountManager.register(object: SyncStatusObserver {
      override fun onIdle() {
        Logger.d("Idle should be executed eventually")
      }
    }
    
  2. Execute this a couple of times rapidly:
      accountManager.syncNowAsync(SyncReason.User, true)
    

Expected

  • We eventually get onIdle executed.

Actual

  • This doesn't always happen.

cc: @grigoryk

┆Issue is synchronized with this Jira Task

Change performed by the Move to Bugzilla add-on.

Severity: -- → N/A
Type: defect → task
You need to log in before you can comment on or make changes to this bug.