+ public static MutableLiveData<String> accountFilter = new MutableLiveData<>();
+ public static void backgroundTaskStarted() {
+ int cnt = backgroundTaskCount.incrementAndGet();
+ debug("data", String.format("background task count is %d after incrementing", cnt));
+ backgroundTasksRunning.postValue(cnt > 0);
+ }
+ public static void backgroundTaskFinished() {
+ int cnt = backgroundTaskCount.decrementAndGet();
+ debug("data", String.format("background task count is %d after decrementing", cnt));
+ backgroundTasksRunning.postValue(cnt > 0);
+ }