tanallnight / Blip

A simple open source XKCD Reader
Apache License 2.0
29 stars 6 forks source link

App crashes after orientation change in ImageActivity #6

Closed LeoLamCY closed 9 years ago

LeoLamCY commented 9 years ago

The app crashes when an ImageActivity is closed after orientation changes (while viewing a comic, change from portrait to landscape back to portrait). The error given is "The ImageView's ScaleType has been changed since attaching a PhotoViewAttacher");

The crash doesn't occur if you comment out the line:

ViewCompat.setTransitionName(photo, EXTRA_IMAGE);

on line 81 in ImageActivity.java

so the crash seems to be related to transitions between activities.

tanallnight commented 9 years ago

Thanks, i removed the transition as i could not get PhotoView to cooperate