mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Don't over-refresh during action re-commit.
This commit is contained in:
parent
10ec4c673a
commit
3bdf5126eb
1 changed files with 4 additions and 15 deletions
|
@ -259,23 +259,12 @@ public class NBSyncService extends Service {
|
|||
*/
|
||||
private void finishActions() {
|
||||
if (HaltNow) return;
|
||||
if (FollowupActions.size() < 1) return;
|
||||
|
||||
try {
|
||||
if (FollowupActions.size() < 1) return;
|
||||
|
||||
ActionsRunning = true;
|
||||
NbActivity.updateAllActivities();
|
||||
|
||||
for (ReadingAction ra : FollowupActions) {
|
||||
ra.doLocal(dbHelper);
|
||||
}
|
||||
FollowupActions.clear();
|
||||
} finally {
|
||||
if (ActionsRunning) {
|
||||
ActionsRunning = false;
|
||||
NbActivity.updateAllActivities();
|
||||
}
|
||||
for (ReadingAction ra : FollowupActions) {
|
||||
ra.doLocal(dbHelper);
|
||||
}
|
||||
FollowupActions.clear();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue