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

Commit a712c3b7 authored by Dianne Hackborn's avatar Dianne Hackborn
Browse files

A couple small settings fixes:

- Correctly position WIFI/GPS charts.
- Start out with running services hidden in case we need to show
  the progress bar.

Change-Id: I8852f334f68f4e9122b5d688d9fd57d0f94d94d8
parent f8a91b53
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -20,7 +20,8 @@

    <FrameLayout android:id="@+id/list_container"
            android:layout_width="match_parent"
            android:layout_height="match_parent">
            android:layout_height="match_parent"
            android:visibility="gone">
        <ListView android:id="@android:id/list"
            android:drawSelectorOnTop="false"
            android:layout_width="match_parent"
@@ -36,7 +37,8 @@
    <view class="com.android.settings.applications.RunningProcessesView"
            android:id="@+id/running_processes"
            android:layout_width="match_parent"
            android:layout_height="match_parent" />
            android:layout_height="match_parent"
            android:visibility="gone" />

    <LinearLayout android:id="@+id/loading_container"
            android:orientation="vertical"
+2 −2
Original line number Diff line number Diff line
@@ -411,8 +411,8 @@ public class BatteryHistoryChart extends View {
            mScreenOnOffset = mChargingOffset + barOffset;
            mWakeLockOffset = mScreenOnOffset + barOffset;
            mWifiRunningOffset = mWakeLockOffset + barOffset;
            mGpsOnOffset = mHaveWifi ? (mWifiRunningOffset + barOffset) : mWakeLockOffset;
            mPhoneSignalOffset = mHaveGps ? (mGpsOnOffset + barOffset) : mWifiRunningOffset;
            mGpsOnOffset = mWifiRunningOffset + (mHaveWifi ? barOffset : 0);
            mPhoneSignalOffset = mGpsOnOffset + (mHaveGps ? barOffset : 0);
            mLevelOffset = mPhoneSignalOffset + barOffset + mLineWidth;
            mPhoneSignalTicks = new int[w+2];
        } else {