Fixed a potential concurrency bug

pull/14/head
Sam Bosley 12 years ago
parent 97c3480732
commit cf97bb9393

@ -240,10 +240,12 @@ public class ActFmSyncThread {
};
private void incrementProgress() {
synchronized (progressBarLock) {
if (activity != null) {
activity.runOnUiThread(incrementProgressRunnable);
}
}
}
public synchronized void setTimeForBackgroundSync(boolean isTimeForBackgroundSync) {
this.isTimeForBackgroundSync = isTimeForBackgroundSync;

Loading…
Cancel
Save