예제 #1
0
  @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;
    }
  }
예제 #2
0
  @Override
  protected void onDestroy() {
    super.onDestroy();

    App.removeObject("delete_book");
  }