@AfterViews public void init() { book = App.getObject("delete_book"); switch (MSG) { case DELETE_BOOK: cb.setVisibility(View.GONE); tv.setText(R.string.delete_book); break; case DELETE_FILE: cb.setVisibility(View.GONE); tv.setText(R.string.delete_file); break; } }
@Override protected void onDestroy() { super.onDestroy(); App.removeObject("delete_book"); }