Ejemplo n.º 1
0
 @Override
 public synchronized void close() {
   if (mObserver != null) {
     getContext().getContentResolver().unregisterContentObserver(mObserver);
     mObserver = null;
   }
   super.close();
 }
 @Override
 public void close() {
   flushPendingWrites();
   // Don't close the database as locale changes will require it to be reopened anyway
   // Also, the database is written to somewhat frequently, so it needs to be kept alive
   // throughout the life of the process.
   // mOpenHelper.close();
   super.close();
 }