import android.util.Log;
import net.ktnx.mobileledger.R;
+import net.ktnx.mobileledger.model.Data;
import net.ktnx.mobileledger.model.LedgerAccount;
import net.ktnx.mobileledger.ui.activity.MainActivity;
import net.ktnx.mobileledger.utils.MLDB;
}
protected Void doInBackground(Void... params) {
+ Data.backgroundTaskCount.incrementAndGet();
try {
HttpURLConnection http = NetworkUtil.prepare_connection(pref, "add");
publishProgress(0);
error = R.string.err_net_error;
e.printStackTrace();
}
+ finally {
+ Log.d("RAT", "decrementing background task count");
+ Data.backgroundTaskCount.decrementAndGet();
+ }
return null;
}