Skip to content
Snippets Groups Projects
Commit 5d0fa41f authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Ensure 'isWorking' variable is up-to-date

(cherry picked from commit 47f9f65d)
parent 42088c60
No related branches found
No related tags found
No related merge requests found
......@@ -61,7 +61,7 @@ public class Medialibrary {
private long mInstanceID;
private volatile boolean mIsInitiated = false;
private boolean mIsWorking = false;
private volatile boolean mIsWorking = false;
private MediaUpdatedCb mediaUpdatedCb = null;
private MediaAddedCb mediaAddedCb = null;
......@@ -413,8 +413,8 @@ public class Medialibrary {
@SuppressWarnings("unused")
public void onBackgroundTasksIdleChanged(boolean isIdle) {
LocalBroadcastManager.getInstance(sContext).sendBroadcast(new Intent(ACTION_IDLE).putExtra(STATE_IDLE, isIdle));
mIsWorking = !isIdle;
LocalBroadcastManager.getInstance(sContext).sendBroadcast(new Intent(ACTION_IDLE).putExtra(STATE_IDLE, isIdle));
}
void onReloadStarted(String entryPoint) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment