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

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

Merge "Home Controls: Add a new Controls tile for prototyping"

parents e1b49726 b6da00e6
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -33,4 +33,9 @@ public interface HomeControlsPlugin extends Plugin {
      * will add home controls to this space.
      */
    void sendParentGroup(ViewGroup group);

    /**
     * When visible, will poll for updates.
     */
    void setVisible(boolean visible);
}
+9 −0
Original line number Diff line number Diff line
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="24dp"
    android:height="24dp"
    android:viewportWidth="24"
    android:viewportHeight="24">
  <path
      android:fillColor="#FF000000"
      android:pathData="M9,21c0,0.55 0.45,1 1,1h4c0.55,0 1,-0.45 1,-1v-1L9,20v1zM12,2C8.14,2 5,5.14 5,9c0,2.38 1.19,4.47 3,5.74L8,17c0,0.55 0.45,1 1,1h6c0.55,0 1,-0.45 1,-1v-2.26c1.81,-1.27 3,-3.36 3,-5.74 0,-3.86 -3.14,-7 -7,-7zM14.85,13.1l-0.85,0.6L14,16h-4v-2.3l-0.85,-0.6C7.8,12.16 7,10.63 7,9c0,-2.76 2.24,-5 5,-5s5,2.24 5,5c0,1.63 -0.8,3.16 -2.15,4.1z"/>
</vector>
+13 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/home_controls_layout"
    android:layout_width="match_parent"
    android:layout_height="125dp"
    android:layout_gravity="@integer/notification_panel_layout_gravity"
    android:visibility="gone"
    android:padding="8dp"
    android:layout_margin="5dp"
    android:background="?android:attr/colorBackgroundFloating"
    android:orientation="vertical">
</LinearLayout>
+2 −12
Original line number Diff line number Diff line
@@ -51,17 +51,7 @@
            systemui:viewType="com.android.systemui.plugins.qs.QS" />

        <!-- Temporary area to test out home controls -->
        <LinearLayout
            android:id="@+id/home_controls_layout"
            android:layout_width="match_parent"
            android:layout_height="125dp"
            android:layout_gravity="@integer/notification_panel_layout_gravity"
            android:visibility="gone"
            android:padding="8dp"
            android:layout_margin="5dp"
            android:background="?android:attr/colorBackgroundFloating"
            android:orientation="vertical">
        </LinearLayout>
        <include layout="@layout/home_controls" />

        <com.android.systemui.statusbar.notification.stack.NotificationStackScrollLayout
            android:id="@+id/notification_stack_scroller"
+1 −1
Original line number Diff line number Diff line
@@ -117,7 +117,7 @@

    <!-- Tiles native to System UI. Order should match "quick_settings_tiles_default" -->
    <string name="quick_settings_tiles_stock" translatable="false">
        wifi,cell,battery,dnd,flashlight,rotation,bt,airplane,location,hotspot,inversion,saver,dark,work,cast,night
        wifi,cell,battery,dnd,flashlight,rotation,bt,airplane,location,hotspot,inversion,saver,dark,work,cast,night,controls
    </string>

    <!-- The tiles to display in QuickSettings -->
Loading