Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e2126baf authored by Jeff Brown's avatar Jeff Brown
Browse files

Make quick settings show the standard media router icon.

Fixed a bug in ImageView where we failed to inform a newly updated
Drawable about the visibility state.  This caused AnimationDrawables
to not animate when attached to an existing ImageView *unless* that
ImageView happened to be attached to the window *later* or have
its visibility toggled for some other reason.

Bug: 11257292
Change-Id: Iba9e0db5ba0db2b022950aec0c6f60a435da8ad2
parent ed7376fc
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -710,6 +710,7 @@ public class ImageView extends View {
            }
            }
            d.setLevel(mLevel);
            d.setLevel(mLevel);
            d.setLayoutDirection(getLayoutDirection());
            d.setLayoutDirection(getLayoutDirection());
            d.setVisible(getVisibility() == VISIBLE, true);
            mDrawableWidth = d.getIntrinsicWidth();
            mDrawableWidth = d.getIntrinsicWidth();
            mDrawableHeight = d.getIntrinsicHeight();
            mDrawableHeight = d.getIntrinsicHeight();
            applyColorMod();
            applyColorMod();
+2 −0
Original line number Original line Diff line number Diff line
@@ -1096,6 +1096,8 @@
  <java-symbol type="drawable" name="notification_template_icon_bg" />
  <java-symbol type="drawable" name="notification_template_icon_bg" />
  <java-symbol type="drawable" name="notification_template_icon_low_bg" />
  <java-symbol type="drawable" name="notification_template_icon_low_bg" />
  <java-symbol type="drawable" name="ic_media_route_on_holo_dark" />
  <java-symbol type="drawable" name="ic_media_route_on_holo_dark" />
  <java-symbol type="drawable" name="ic_media_route_off_holo_dark" />
  <java-symbol type="drawable" name="ic_media_route_connecting_holo_dark" />
  <java-symbol type="drawable" name="ic_media_route_disabled_holo_dark" />
  <java-symbol type="drawable" name="ic_media_route_disabled_holo_dark" />
  <java-symbol type="drawable" name="cling_button" />
  <java-symbol type="drawable" name="cling_button" />
  <java-symbol type="drawable" name="cling_arrow_up" />
  <java-symbol type="drawable" name="cling_arrow_up" />
−1.08 KiB
Loading image diff...
−1.04 KiB
Loading image diff...
−846 B
Loading image diff...
Loading