Fixed an issue with screen rotation when using an xml drawable