update handler if looper changed (on rotation)

This commit is contained in:
Adrian Ulrich committed 2015-08-09 13:42:20 +02:00
1 parent 22ab085a2c
commit ab4b3aebcc
1 file changed
+1 -1
@@ -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