BUG FIX: java.lang.NullPointerException in GalleryView.onAttachedToWindow(GalleryView.java:49)