예제 #1
0
    @Override
    protected void onFailure(TaskException exception) {
      super.onFailure(exception);

      if ("21324".equals(exception.getCode()) && getActivity() != null) {
        new AlertDialogWrapper.Builder(getActivity())
            .setTitle(R.string.remind)
            .setMessage(R.string.account_illegal_app)
            .setPositiveButton(
                R.string.confirm,
                new DialogInterface.OnClickListener() {

                  @Override
                  public void onClick(DialogInterface dialog, int which) {
                    getActivity().finish();
                  }
                })
            .show();
      } else {
        showMessage(exception.getMessage());

        if (getActivity() != null) requestData();
      }
    }
예제 #2
0
    @Override
    protected void onFailure(TaskException exception) {
      super.onFailure(exception);

      showMessage(exception.getMessage());
    }