Search in sources :

Example 1 with StateTransitionAnimation

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;
    }
}
Also used : RawTexture(com.android.gallery3d.glrenderer.RawTexture) StateTransitionAnimation(com.android.gallery3d.anim.StateTransitionAnimation)

Aggregations

StateTransitionAnimation (com.android.gallery3d.anim.StateTransitionAnimation)1 RawTexture (com.android.gallery3d.glrenderer.RawTexture)1