Prevent InstalledAppProvider
from notifying about changes.
Historically the providers were responsible for notifying about inserts/deletes for this table. However this is no longer the case with the new service responsible for throttling the rate with which these notifications occur.
This commit is contained in:
parent
2d90a484df
commit
7c8ea5c5af
@ -183,11 +183,7 @@ public class InstalledAppProvider extends FDroidProvider {
|
|||||||
QuerySelection query = new QuerySelection(where, whereArgs);
|
QuerySelection query = new QuerySelection(where, whereArgs);
|
||||||
query = query.add(queryApp(uri.getLastPathSegment()));
|
query = query.add(queryApp(uri.getLastPathSegment()));
|
||||||
|
|
||||||
int count = db().delete(getTableName(), query.getSelection(), query.getArgs());
|
return db().delete(getTableName(), query.getSelection(), query.getArgs());
|
||||||
if (!isApplyingBatch()) {
|
|
||||||
getContext().getContentResolver().notifyChange(uri, null);
|
|
||||||
}
|
|
||||||
return count;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -199,9 +195,6 @@ public class InstalledAppProvider extends FDroidProvider {
|
|||||||
|
|
||||||
verifyVersionNameNotNull(values);
|
verifyVersionNameNotNull(values);
|
||||||
db().replaceOrThrow(getTableName(), null, values);
|
db().replaceOrThrow(getTableName(), null, values);
|
||||||
if (!isApplyingBatch()) {
|
|
||||||
getContext().getContentResolver().notifyChange(uri, null);
|
|
||||||
}
|
|
||||||
return getAppUri(values.getAsString(DataColumns.PACKAGE_NAME));
|
return getAppUri(values.getAsString(DataColumns.PACKAGE_NAME));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user