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

Ensure 'isWorking' variable is up-to-date

parent feff6595
No related branches found
No related tags found
No related merge requests found
......@@ -60,7 +60,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;
......@@ -411,8 +411,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