<T extends SupportActivity.ExtraData> T getExtraData(final CallFun1<T, Class<T>> superCall, final Class<T> extraDataClass) { synchronized (mSuperListeners) { mSuperListeners.push(superCall); return getExtraData(extraDataClass); } }
void putExtraData(final CallVoid1<SupportActivity.ExtraData> superCall, final SupportActivity.ExtraData extraData) { synchronized (mSuperListeners) { mSuperListeners.push(superCall); putExtraData(extraData); } }
@Override public void onAttach(SupportActivity activity) { super.onAttach(activity); setRetainInstance(true); if (mState == null) { mState = new State(); } mState.mReceiver.setReceiver(this); }
/** * Set title and color of action bar. * * @param activity * @param title * @param color */ public static void setActionBarData(SupportActivity activity, String title, int color) { if (activity != null) { final ActivityHelper activityHelper = ((BaseActivity) activity) .getActivityHelper(); activity.setTitle(title); if (color != -1) { activityHelper.setActionBarColor(color); } } }
@Override public <T extends SupportActivity.ExtraData> T getExtraData(final Class<T> extraDataClass) { return delegate.getExtraData(extraDataClass); }
@Override public void putExtraData(final SupportActivity.ExtraData extraData) { delegate.putExtraData(extraData); }
@Override public <T extends SupportActivity.ExtraData> T super_getExtraData( final Class<T> extraDataClass) { return super.getExtraData(extraDataClass); }
@Override public void super_putExtraData(final SupportActivity.ExtraData extraData) { super.putExtraData(extraData); }
public <T extends SupportActivity.ExtraData> T getExtraData(final Class<T> extraDataClass) { verifyMethodCalledFromDelegate("getExtraData(Class<T>)"); return ((CallFun1<T, Class<T>>) mSuperListeners.pop()).call(extraDataClass); }
public void putExtraData(final SupportActivity.ExtraData extraData) { verifyMethodCalledFromDelegate("putExtraData(SupportActivity.ExtraData)"); ((CallVoid1<SupportActivity.ExtraData>) mSuperListeners.pop()).call(extraData); }
public static ActivityHelper createInstance(SupportActivity activity) { return new ActivityHelper(activity); }
protected ActivityHelper(SupportActivity activity) { mActivity = activity; }
<T extends SupportActivity.ExtraData> T getExtraData(final Class<T> extraDataClass);
void putExtraData(final SupportActivity.ExtraData extraData);
<T extends SupportActivity.ExtraData> T super_getExtraData(final Class<T> extraDataClass);
void super_putExtraData(final SupportActivity.ExtraData extraData);