Skip to content

Commit 8b8b2e7

Browse files
author
Paul Ruiz
committed
Added Android L animations demo
1 parent 4f16e89 commit 8b8b2e7

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Animations/app/src/main/java/com/ptrprograms/animations/activity/MainActivity.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ public void onTransitionResume(Transition transition) {
5050
@Override
5151
protected void onDestroy() {
5252
super.onDestroy();
53-
getWindow().getEnterTransition().removeListener( this );
53+
if( getWindow() != null && getWindow().getEnterTransition() != null )
54+
getWindow().getEnterTransition().removeListener( this );
5455
}
5556
}

Animations/app/src/main/java/com/ptrprograms/animations/activity/SharedElementSecondAnimationActivity.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
package com.ptrprograms.animations.activity;
22

3-
import android.animation.ObjectAnimator;
43
import android.app.Activity;
54
import android.graphics.Bitmap;
65
import android.graphics.BitmapFactory;
76
import android.os.Bundle;
8-
import android.util.Log;
97
import android.widget.ImageView;
108

119
import com.ptrprograms.animations.R;

0 commit comments

Comments
 (0)