Пример #1
0
 @Override
 protected void onDestroy() {
   realmDBManager.close();
   if (EventBus.getDefault().isRegistered(this)) EventBus.getDefault().unregister(this);
   Runtime.getRuntime().gc();
   super.onDestroy();
 }
Пример #2
0
 @Override
 public boolean onNavigateUp() {
   realmDBManager.close();
   Runtime.getRuntime().gc();
   return super.onNavigateUp();
 }