@Override
  public void setContentView(View view, ViewGroup.LayoutParams params) {
    if (DEBUG) Log.d(TAG, "[setContentView] view: " + view + ", params: " + params);

    if (mContentParent == null) {
      installDecor();
    } else {
      mContentParent.removeAllViews();
    }
    mContentParent.addView(view, params);

    android.view.Window.Callback callback = mActivity.getWindow().getCallback();
    if (callback != null) {
      callback.onContentChanged();
    }

    initActionBar();
  }
  @Override
  public void setContentView(int layoutResId) {
    if (DEBUG) Log.d(TAG, "[setContentView] layoutResId: " + layoutResId);

    if (mContentParent == null) {
      installDecor();
    } else {
      mContentParent.removeAllViews();
    }
    mActivity.getLayoutInflater().inflate(layoutResId, mContentParent);

    android.view.Window.Callback callback = mActivity.getWindow().getCallback();
    if (callback != null) {
      callback.onContentChanged();
    }

    initActionBar();
  }