Do not close cursor that is still in use
This commit is contained in:
parent
a771ad16cf
commit
f4019af03d
@ -309,7 +309,6 @@ public class OfflineFeedCategoriesFragment extends Fragment implements OnItemCli
|
|||||||
|
|
||||||
if (c != null) {
|
if (c != null) {
|
||||||
int catId = c.getInt(0);
|
int catId = c.getInt(0);
|
||||||
c.close();
|
|
||||||
return catId;
|
return catId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -339,7 +339,6 @@ public class OfflineFeedsFragment extends Fragment implements OnItemClickListene
|
|||||||
|
|
||||||
if (c != null) {
|
if (c != null) {
|
||||||
int feedId = c.getInt(0);
|
int feedId = c.getInt(0);
|
||||||
c.close();
|
|
||||||
return feedId;
|
return feedId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user