private static final int ADAPTIVE_BACKGROUND_WIDTH = 256;
private static final int ADAPTIVE_BACKGROUND_HEIGHT = 128;
- BackgroundLayer(GridLayer layer) {
+ public BackgroundLayer(GridLayer layer) {
mGridLayer = layer;
}
view.bind(mFallbackBackground);
} else {
Texture texture = anchorTexture.getTexture();
- if (texture.isLoaded()) {
+ if (texture != null && texture.isLoaded()) {
mFallbackBackground = texture;
}
}