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

Commit 33e07653 authored by Roman Birg's avatar Roman Birg
Browse files

SystemUI: add Profiles tile



Change-Id: I9fd2c807272f73159d13fbe23404568e54c519bf
Signed-off-by: default avatarRoman Birg <roman@cyngn.com>
parent dba5f7d6
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -36,6 +36,7 @@ public class QSConstants {
    public static final String TILE_ROAMING = "roaming";
    public static final String TILE_DDS = "dds";
    public static final String TILE_APN = "apn";
    public static final String TILE_PROFILES = "profiles";

    // Order matters
    protected static final ArrayList<String> TILES_DEFAULT = new ArrayList<String>();
@@ -62,5 +63,6 @@ public class QSConstants {
        TILES_AVAILABLE.add(TILE_ROAMING);
        TILES_AVAILABLE.add(TILE_DDS);
        TILES_AVAILABLE.add(TILE_APN);
        TILES_AVAILABLE.add(TILE_PROFILES);
    }
}
+11 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="64dp"
    android:height="64dp"
    android:viewportWidth="24"
    android:viewportHeight="24">

    <path
        android:fillColor="#FFFFFF"
        android:pathData="M14.304,5.455l0.79-1.93c0.079-0.193-0.013-0.413-0.206-0.492c-0.193-0.079-0.413,0.013-0.492,0.206 l-0.818,2c-0.903-0.207-2.055-0.286-3.433-0.286v0.005h0V4.953c-0.18,0-0.355,0.002-0.527,0.005H9.615 C8.468,4.976,7.495,5.06,6.71,5.239l-0.819-2C5.812,3.046,5.592,2.954,5.399,3.033C5.206,3.112,5.114,3.332,5.193,3.525l0.79,1.93 C4.934,5.852,4.377,6.523,4.377,7.6v2.261v0.587v0.644c0,1.98,1.876,2.588,5.238,2.643v0.003h0.209 c0.105,0.001,0.212,0.002,0.32,0.002v-0.002h0v0.002c0.108,0,0.214-0.001,0.32-0.002h0.015c3.484-0.034,5.432-0.628,5.432-2.646 v-0.644V9.861V7.6C15.909,6.523,15.352,5.852,14.304,5.455Z M7.179,11.014c-0.953,0-1.725-0.772-1.725-1.724 c0-0.953,0.772-1.725,1.725-1.725c0.952,0,1.724,0.772,1.724,1.725C8.904,10.242,8.132,11.014,7.179,11.014z M10.325,12.265H9.961 c-0.268,0-0.485-0.217-0.485-0.485c0-0.01,0.002-0.019,0.003-0.029h1.328c0.001,0.01,0.003,0.019,0.003,0.029  C10.81,12.048,10.593,12.265,10.325,12.265z M13.107,11.014c-0.953,0-1.725-0.772-1.725-1.724c0-0.953,0.772-1.725,1.725-1.725 c0.952,0,1.724,0.772,1.724,1.725C14.832,10.242,14.06,11.014,13.107,11.014z M21.44,10.402c-0.261,1.016-0.5,4.301-5.798,7.557 c-0.439,0.269-0.884,0.974-0.884,2.152l0.05,0.89h-1.922v0h-0.014c0-1.492-1.214-2.706-2.706-2.706 c-1.492,0-2.706,1.214-2.706,2.706v0H5.525l0.07-1.243c0,0-0.203,0.516-0.489,1.243H2.501l1.563-4.171 c0.303-0.793,1.013-1.282,1.733-1.529c0.524-0.18,1.593-0.386,3.586-0.485h1.569c0.492,0.025,0.926,0.055,1.311,0.091 c0,0,0,0,0.001,0s0,0,0.001,0c0.296,0.027,0.563,0.057,0.801,0.089c1.028,0.062,2.506-0.095,4.131-1.475 c1.423-1.209,1.591-2.051,2.28-3.895C20.285,7.463,21.816,8.936,21.44,10.402z M12.316,21h0.013v0H8.02v0H8.019 c0-1.185,0.964-2.148,2.149-2.148C11.352,18.851,12.316,19.815,12.316,21z" />
</vector>
 No newline at end of file
+12 −12
Original line number Diff line number Diff line
@@ -45,28 +45,28 @@
        <RadioButton android:id="@+id/radio_high_accuracy"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:paddingTop="8dp"
            android:paddingLeft="16dp"
            android:paddingRight="8dp"
            android:paddingBottom="8dp"
            android:paddingTop="@dimen/detail_radio_group_padding"
            android:paddingLeft="@dimen/detail_radio_group_padding_left"
            android:paddingRight="@dimen/detail_radio_group_padding"
            android:paddingBottom="@dimen/detail_radio_group_padding"
            android:textSize="20sp"
            android:text="@string/quick_settings_location_detail_mode_high_accuracy_title" />
        <RadioButton android:id="@+id/radio_battery_saving"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:paddingTop="8dp"
            android:paddingLeft="16dp"
            android:paddingRight="8dp"
            android:paddingBottom="8dp"
            android:paddingTop="@dimen/detail_radio_group_padding"
            android:paddingLeft="@dimen/detail_radio_group_padding_left"
            android:paddingRight="@dimen/detail_radio_group_padding"
            android:paddingBottom="@dimen/detail_radio_group_padding"
            android:textSize="20sp"
            android:text="@string/quick_settings_location_detail_mode_battery_saving_title" />
        <RadioButton android:id="@+id/radio_sensors_only"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:paddingTop="8dp"
            android:paddingLeft="16dp"
            android:paddingRight="8dp"
            android:paddingBottom="8dp"
            android:paddingTop="@dimen/detail_radio_group_padding"
            android:paddingLeft="@dimen/detail_radio_group_padding_left"
            android:paddingRight="@dimen/detail_radio_group_padding"
            android:paddingBottom="@dimen/detail_radio_group_padding"
            android:textSize="20sp"
            android:text="@string/quick_settings_location_detail_mode_sensors_only_title" />
        </RadioGroup>
+31 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
     Copyright (C) 2014 The CyanogenMod 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.
-->
<com.android.systemui.qs.tiles.ProfilesDetailView
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:paddingStart="16dp"
        android:paddingEnd="16dp"
        android:orientation="vertical">

    <ListView
            android:id="@android:id/list"
            android:divider="@null"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"/>

</com.android.systemui.qs.tiles.ProfilesDetailView>
+2 −0
Original line number Diff line number Diff line
@@ -16,4 +16,6 @@
-->
<resources>
    <dimen name="weather_text_size">12sp</dimen>
     <dimen name="detail_radio_group_padding_left">16dp</dimen>
     <dimen name="detail_radio_group_padding">8dp</dimen>
</resources>
 No newline at end of file
Loading