With rescanMedia in the tag editor, the activity won't finish until scanning is complete. This was a bug before and it caused a service connection leak and incomplete scan.

This commit is contained in:
Aidan Follestad 2015-04-18 22:49:52 -05:00
commit b9bbccf196

View file

@ -382,13 +382,14 @@ public abstract class AbsTagEditorActivity extends AbsBaseActivity {
public void run() {
if (i == 0 || i == toBeScannedLength - 1) {
App.bus.post(new DataBaseChangedEvent(DataBaseChangedEvent.DATABASE_CHANGED));
if (i == toBeScannedLength - 1)
finish();
}
i++;
}
});
}
});
finish();
}
protected int getId() {