Avoid SQLite statement cache full warning
This commit is contained in:
parent
51a67efdf1
commit
c2cd6a9c66
@ -562,9 +562,13 @@ public class DB {
|
|||||||
for (Apk apk : app.apks) {
|
for (Apk apk : app.apks) {
|
||||||
|
|
||||||
if (apkrepo == 0 || apkrepo == apk.repo) {
|
if (apkrepo == 0 || apkrepo == apk.repo) {
|
||||||
c = db.query(TABLE_APK, cols, "id = ? and vercode = "
|
c = db.query(
|
||||||
+ Integer.toString(apk.vercode),
|
TABLE_APK,
|
||||||
new String[] { apk.id }, null, null, null, null);
|
cols,
|
||||||
|
"id = ? and vercode = ?",
|
||||||
|
new String[] { apk.id,
|
||||||
|
Integer.toString(apk.vercode) }, null,
|
||||||
|
null, null, null);
|
||||||
c.moveToFirst();
|
c.moveToFirst();
|
||||||
apk.detail_hash = c.getString(0);
|
apk.detail_hash = c.getString(0);
|
||||||
apk.detail_hashType = c.getString(1);
|
apk.detail_hashType = c.getString(1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user