update handler if looper changed (on rotation)

This commit is contained in:
Adrian Ulrich 2015-08-09 13:42:20 +02:00
parent 22ab085a2c
commit ab4b3aebcc

View File

@ -126,7 +126,7 @@ public class LazyCoverView extends ImageView
if (sUiHandler == null) {
sUiHandler = new Handler(this);
}
if (sHandler == null) {
if (sHandler == null || sHandler.getLooper().equals(looper) == false) {
sHandler = new Handler(looper, this);
}
// image dimension we are going to cache - we should probably calculate this