summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI
diff options
context:
space:
mode:
authorChris Craik <ccraik@google.com>2015-04-29 01:43:02 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-04-29 01:43:02 +0000
commit4f66e48de3a66ca41916b897f0898f8eb23aa2ac (patch)
tree05b6490838b65a64302a1331650a5734be120c6e /packages/SystemUI
parent0e7d1432d4ef5662c4aa7e89adf3f43a8761f4bd (diff)
parent2f1d09c3c5e80e875f588d77bc1e47d317491fa8 (diff)
downloadframeworks_base-4f66e48de3a66ca41916b897f0898f8eb23aa2ac.zip
frameworks_base-4f66e48de3a66ca41916b897f0898f8eb23aa2ac.tar.gz
frameworks_base-4f66e48de3a66ca41916b897f0898f8eb23aa2ac.tar.bz2
am 2f1d09c3: Merge "Use default constructor to get anti-aliasing" into mnc-dev
* commit '2f1d09c3c5e80e875f588d77bc1e47d317491fa8': Use default constructor to get anti-aliasing
Diffstat (limited to 'packages/SystemUI')
-rwxr-xr-xpackages/SystemUI/src/com/android/systemui/BatteryMeterView.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/BatteryMeterView.java b/packages/SystemUI/src/com/android/systemui/BatteryMeterView.java
index 0d331d1..3fbc76b 100755
--- a/packages/SystemUI/src/com/android/systemui/BatteryMeterView.java
+++ b/packages/SystemUI/src/com/android/systemui/BatteryMeterView.java
@@ -225,23 +225,23 @@ public class BatteryMeterView extends View implements DemoMode,
mSubpixelSmoothingRight = context.getResources().getFraction(
R.fraction.battery_subpixel_smoothing_right, 1, 1);
- mFramePaint = new Paint(Paint.ANTI_ALIAS_FLAG);
+ mFramePaint = new Paint();
mFramePaint.setColor(frameColor);
mFramePaint.setDither(true);
mFramePaint.setStrokeWidth(0);
mFramePaint.setStyle(Paint.Style.FILL_AND_STROKE);
- mBatteryPaint = new Paint(Paint.ANTI_ALIAS_FLAG);
+ mBatteryPaint = new Paint();
mBatteryPaint.setDither(true);
mBatteryPaint.setStrokeWidth(0);
mBatteryPaint.setStyle(Paint.Style.FILL_AND_STROKE);
- mTextPaint = new Paint(Paint.ANTI_ALIAS_FLAG);
+ mTextPaint = new Paint();
Typeface font = Typeface.create("sans-serif-condensed", Typeface.BOLD);
mTextPaint.setTypeface(font);
mTextPaint.setTextAlign(Paint.Align.CENTER);
- mWarningTextPaint = new Paint(Paint.ANTI_ALIAS_FLAG);
+ mWarningTextPaint = new Paint();
mWarningTextPaint.setColor(mColors[1]);
font = Typeface.create("sans-serif", Typeface.BOLD);
mWarningTextPaint.setTypeface(font);
@@ -249,7 +249,7 @@ public class BatteryMeterView extends View implements DemoMode,
mChargeColor = context.getColor(R.color.batterymeter_charge_color);
- mBoltPaint = new Paint(Paint.ANTI_ALIAS_FLAG);
+ mBoltPaint = new Paint();
mBoltPaint.setColor(context.getColor(R.color.batterymeter_bolt_color));
mBoltPoints = loadBoltPoints(res);