Commit 47f9f65d authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Ensure 'isWorking' variable is up-to-date

parent feff6595
......@@ -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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment