Action action = (Action) item; if (TextUtils.isEmpty(action.getLabel2())) { return mOneLineActionPresenter; } else { return mTwoLineActionPresenter; }