Fixed closed cursor access exception on Android 4.x

platforms
This commit is contained in:
Juan Miguel Boyero Corral 2012-05-13 19:12:55 +02:00
parent 9552c6fea5
commit 4534a02874
2 changed files with 3 additions and 2 deletions

Binary file not shown.

View File

@ -116,6 +116,7 @@ public class Notifications extends Module {
*/
private void refreshScreen() {
//Refresh data on screen
stopManagingCursor(dbCursor);
dbCursor = dbHelper.getDb().getCursor(Global.DB_TABLE_NOTIFICATIONS, selection, orderby);
startManagingCursor(dbCursor);
adapter.changeCursor(dbCursor);