commit | abff032e783398be7a1c6b7e1e25a73a8467adcf | [log] [tgz] |
---|---|---|
author | Daniel Sandler <dsandler@android.com> | Tue Sep 27 11:19:34 2011 -0400 |
committer | Daniel Sandler <dsandler@android.com> | Tue Sep 27 11:20:17 2011 -0400 |
tree | b32291051bd5aa0db5bf920f7fccb7d29f720255 | |
parent | b4f0a9f3894c1f039168ad672f4aa194999c7cdd [diff] |
Draw smaller system status icons without scaling. Bug: 5297795 Change-Id: I11dc3a21b2e1111963b1cd9621434747f1757a67
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/StatusBarIconView.java b/packages/SystemUI/src/com/android/systemui/statusbar/StatusBarIconView.java index a90eb3f..6997837 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/StatusBarIconView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/StatusBarIconView.java
@@ -29,6 +29,7 @@ import android.util.Log; import android.view.ViewDebug; import android.view.accessibility.AccessibilityEvent; +import android.widget.ImageView; import java.text.NumberFormat; @@ -70,6 +71,8 @@ final float alpha = res.getFraction(R.dimen.status_bar_icon_drawing_alpha, 1, 1); setAlpha(alpha); } + + setScaleType(ImageView.ScaleType.CENTER); } private static boolean streq(String a, String b) {