@Override
 protected void onStart() {
   super.onStart();
   if (commentCount > 0) {
     mPresenter.loadComments(answerId);
   }
 }
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_comment);
    ButterKnife.bind(this);

    answerId = getIntent().getIntExtra(PARAM_ANSWER_ID, 0);
    commentCount = getIntent().getIntExtra(PARAM_COMMENT_COUNT, 0);

    setSupportActionBar(toolbar);
    getSupportActionBar().setDisplayHomeAsUpEnabled(true);

    LinearLayoutManager linearLayoutManager = new LinearLayoutManager(this);
    mRecyclerView.setLayoutManager(linearLayoutManager);
    mAdapter = new CommentAdapter(this, this);
    mRecyclerView.setAdapter(mAdapter);

    ivPublish.setOnClickListener(
        new View.OnClickListener() {
          @Override
          public void onClick(final View v) {
            v.setClickable(false);
            mPresenter.publishComment(answerId, etContent.getText().toString(), v);
            etContent.setText("");
            InputMethodManager imm =
                (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
            imm.toggleSoftInput(0, InputMethodManager.HIDE_NOT_ALWAYS);
          }
        });
  }
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_login);
    ButterKnife.bind(this);

    JPushInterface.clearAllNotifications(getApplicationContext());
    JPushHelper jPushHelper = new JPushHelper(null, null);
    jPushHelper.cancelAlias();

    ApiClient.userLogout();

    mBtLogin.setOnClickListener(this);
    btGreenChannel.setOnClickListener(this);
  }
 @Override
 public void setContentView(int layoutResID) {
   super.setContentView(layoutResID);
   StatusBarHelper.setStatusBar(this);
 }