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

Commit 9eeb71d8 authored by Quarx2k's avatar Quarx2k
Browse files

Fix percentage battery in tablet mode

parent 1e2831e9
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -133,6 +133,17 @@
                android:layout_marginRight="-3dip"
                android:gravity="center_vertical|left"
                />
            <TextView
                android:id="@+id/battery_text"
                android:textAppearance="@style/TextAppearance.StatusBar.Battery"
                android:layout_width="wrap_content"
                android:layout_height="match_parent"
                android:singleLine="true"
                android:textSize="20sp"
                android:paddingLeft="4dip"
                android:layout_marginRight="-3dip"
                android:gravity="center_vertical|left"
                />
            <ImageView
                android:id="@+id/dock_battery"
                android:layout_height="wrap_content"
+1 −0
Original line number Diff line number Diff line
@@ -581,6 +581,7 @@ public class TabletStatusBar extends BaseStatusBar implements

        mBatteryController = new BatteryController(mContext);
        mBatteryController.addIconView((ImageView)sb.findViewById(R.id.battery));
        mBatteryController.addLabelView((TextView)sb.findViewById(R.id.battery_text));

        mHasDockBattery = mContext.getResources().getBoolean(
                com.android.internal.R.bool.config_hasDockBattery);