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

Commit 99bdf57b authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Status bar size tweaks"

parents 755e6c88 706d9684
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -40,7 +40,7 @@ public class BatteryMeterDrawableBase extends Drawable {

    private static final float ASPECT_RATIO = .58f;
    public static final String TAG = BatteryMeterDrawableBase.class.getSimpleName();
    private static final float RADIUS_RATIO = 1.75f / 17f;
    private static final float RADIUS_RATIO = 1.0f / 17f;

    protected final Context mContext;
    protected final Paint mFramePaint;
@@ -273,9 +273,9 @@ public class BatteryMeterDrawableBase extends Drawable {

        // button-frame: area above the battery body
        mButtonFrame.set(
                mFrame.left + Math.round(width * 0.3f),
                mFrame.left + Math.round(width * 0.28f),
                mFrame.top,
                mFrame.right - Math.round(width * 0.3f),
                mFrame.right - Math.round(width * 0.28f),
                mFrame.top + buttonHeight);

        // frame: battery body area
@@ -302,9 +302,10 @@ public class BatteryMeterDrawableBase extends Drawable {

        if (mCharging) {
            // define the bolt shape
            final float bl = mFrame.left + mFrame.width() / 4f;
            // Shift right by 1px for maximal bolt-goodness
            final float bl = mFrame.left + mFrame.width() / 4f + 1;
            final float bt = mFrame.top + mFrame.height() / 6f;
            final float br = mFrame.right - mFrame.width() / 4f;
            final float br = mFrame.right - mFrame.width() / 4f + 1;
            final float bb = mFrame.bottom - mFrame.height() / 10f;
            if (mBoltFrame.left != bl || mBoltFrame.top != bt
                    || mBoltFrame.right != br || mBoltFrame.bottom != bb) {
+1 −0
Original line number Diff line number Diff line
@@ -29,6 +29,7 @@ Command | Subcommand | Argument | Description
```battery```        |                            |                | Control the battery display
                     | ```level```                |                | Sets the battery level (0 - 100)
                     | ```plugged```              |                | Sets charging state (```true```, ```false```)
                     | ```powersave```            |                | Sets power save mode (```true```, ```anything else```)
```network```        |                            |                | Control the RSSI display
                     | ```airplane```             |                | ```show``` to show icon, any other value to hide
                     | ```fully```                |                | Sets MCS state to fully connected (```true```, ```false```)
+2 −2
Original line number Diff line number Diff line
@@ -20,8 +20,8 @@
    android:insetLeft="2.5dp"
    android:insetRight="2.5dp" >
    <vector
        android:width="17dp"
        android:height="17dp"
        android:width="18dp"
        android:height="18dp"
        android:viewportWidth="19.0"
        android:viewportHeight="19.0">
        <group
+2 −2
Original line number Diff line number Diff line
@@ -20,8 +20,8 @@
    android:insetLeft="2.5dp"
    android:insetRight="2.5dp" >
    <vector
        android:width="17dp"
        android:height="17dp"
        android:width="16dp"
        android:height="16dp"
        android:viewportWidth="16.6"
        android:viewportHeight="16.6">
        <group
+2 −2
Original line number Diff line number Diff line
@@ -17,8 +17,8 @@ Copyright (C) 2017 The Android Open Source Project
    android:insetLeft="2.5dp"
    android:insetRight="2.5dp">
    <vector
        android:width="17.0dp"
        android:height="17.0dp"
        android:width="18.0dp"
        android:height="18.0dp"
        android:viewportWidth="18.0"
        android:viewportHeight="18.0">
      <group
Loading