use of com.android.gallery3d.anim.StateTransitionAnimation in project android_packages_apps_Gallery2 by LineageOS.
the class ActivityState method onResume.
// a subclass of ActivityState should override the method to resume itself
protected void onResume() {
RawTexture fade = mActivity.getTransitionStore().get(PreparePageFadeoutTexture.KEY_FADE_TEXTURE);
mNextTransition = mActivity.getTransitionStore().get(KEY_TRANSITION_IN, StateTransitionAnimation.Transition.None);
if (mNextTransition != StateTransitionAnimation.Transition.None) {
mIntroAnimation = new StateTransitionAnimation(mNextTransition, fade);
mNextTransition = StateTransitionAnimation.Transition.None;
}
}
Aggregations