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

Commit d39c6e40 authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

Data usage app icons and details, chart labels.

Add app icons into both summary list and details pane. Also show list
of all applications merged under a UID. Draw dates on chart axis, and
avoid flashing policy sweeps when switching networks in detail mode.

Bug: 5087283, 5038812
Change-Id: I1dcd03ca85b517f8726452af8a46b4be9b3d20f1
parent ce919e40
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1185,7 +1185,8 @@
        </activity>

        <activity android:name="Settings$DataUsageSummaryActivity"
                android:label="@string/data_usage_summary_title">
                android:label="@string/data_usage_summary_title"
                android:uiOptions="none">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.DEFAULT" />
+22 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2011 The Android Open Source Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->

<TextView xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:singleLine="true"
    android:ellipsize="marquee"
    android:textAppearance="?android:attr/textAppearanceMedium" />
+1 −1
Original line number Diff line number Diff line
@@ -30,7 +30,7 @@
        settings:primaryDrawable="@drawable/data_grid_primary"
        settings:secondaryDrawable="@drawable/data_grid_secondary"
        settings:borderDrawable="@drawable/data_grid_border"
        settings:labelColor="#24aae1" />
        settings:labelColor="#667bb5" />

    <com.android.settings.widget.ChartNetworkSeriesView
        android:id="@+id/series"
+12 −9
Original line number Diff line number Diff line
@@ -20,17 +20,20 @@
    android:layout_height="match_parent"
    android:orientation="vertical">

    <TextView
        android:id="@+id/app_title"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginLeft="16dip" />
    <ImageView
        android:id="@+id/app_icon"
        android:layout_width="48dip"
        android:layout_height="48dip"
        android:layout_marginLeft="16dip"
        android:scaleType="centerInside" />

    <TextView
        android:id="@+id/app_subtitle"
    <LinearLayout
        android:id="@+id/app_titles"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginLeft="16dip" />
        android:layout_height="match_parent"
        android:layout_marginLeft="16dip"
        android:layout_marginTop="8dip"
        android:orientation="vertical" />

    <Button
        android:id="@+id/app_settings"
+2 −0
Original line number Diff line number Diff line
@@ -43,6 +43,8 @@
        android:paddingRight="16dip"
        android:paddingTop="8dip"
        android:paddingBottom="8dip"
        android:singleLine="true"
        android:ellipsize="marquee"
        android:textAppearance="?android:attr/textAppearanceSmall" />

    <TextView
Loading