mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-29 22:03:55 +01:00
Fix issue where upload notification shows up on app start (#4099)
This commit is contained in:
parent
0415a57d34
commit
5c6e777b37
2 changed files with 25 additions and 10 deletions
|
|
@ -68,6 +68,9 @@ public abstract class ContributionDao {
|
|||
@Query("UPDATE contribution SET state=:state WHERE state in (:toUpdateStates)")
|
||||
public abstract Single<Integer> updateStates(int state, int[] toUpdateStates);
|
||||
|
||||
@Query("SELECT COUNT(*) from contribution WHERE state in (:toUpdateStates)")
|
||||
public abstract Single<Integer> getPendingUploads(int[] toUpdateStates);
|
||||
|
||||
@Query("Delete FROM contribution")
|
||||
public abstract void deleteAll() throws SQLiteException;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue