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:
parent
52d2cdb7ee
commit
b9bbccf196
1 changed files with 2 additions and 1 deletions
|
|
@ -382,13 +382,14 @@ public abstract class AbsTagEditorActivity extends AbsBaseActivity {
|
||||||
public void run() {
|
public void run() {
|
||||||
if (i == 0 || i == toBeScannedLength - 1) {
|
if (i == 0 || i == toBeScannedLength - 1) {
|
||||||
App.bus.post(new DataBaseChangedEvent(DataBaseChangedEvent.DATABASE_CHANGED));
|
App.bus.post(new DataBaseChangedEvent(DataBaseChangedEvent.DATABASE_CHANGED));
|
||||||
|
if (i == toBeScannedLength - 1)
|
||||||
|
finish();
|
||||||
}
|
}
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
finish();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected int getId() {
|
protected int getId() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue