We were not clearing the background drawable if it had been set as a resource
reference.
This commit is contained in:
Dianne Hackborn
2009-06-22 20:56:57 -07:00
parent 2350643115
commit a7c176c341

View File

@@ -954,7 +954,7 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback {
@Override
public final void setBackgroundDrawable(Drawable drawable) {
if (drawable != mBackgroundDrawable) {
if (drawable != mBackgroundDrawable || mBackgroundResource != 0) {
mBackgroundResource = 0;
mBackgroundDrawable = drawable;
if (mDecor != null) {