mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1247557 - Close Cursors in AndroidImport. r=sebastian
MozReview-Commit-ID: KcKAXLxJr7l
This commit is contained in:
parent
283e5223a8
commit
2ec4d618b2
@ -151,13 +151,14 @@ public class AndroidImport implements Runnable {
|
||||
flushBatchOperations();
|
||||
}
|
||||
|
||||
protected Cursor query (Uri mainUri, Uri fallbackUri, String condition) {
|
||||
Cursor cursor = mCr.query(mainUri, null, condition, null, null);
|
||||
|
||||
protected Cursor query(Uri mainUri, Uri fallbackUri, String condition) {
|
||||
final Cursor cursor = mCr.query(mainUri, null, condition, null, null);
|
||||
if (Build.MANUFACTURER.equals(SAMSUNG_MANUFACTURER) && (cursor == null || cursor.getCount() == 0)) {
|
||||
cursor = mCr.query(fallbackUri, null, null, null, null);
|
||||
if (cursor != null) {
|
||||
cursor.close();
|
||||
}
|
||||
return mCr.query(fallbackUri, null, null, null, null);
|
||||
}
|
||||
|
||||
return cursor;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user