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

Commit 052e9327 authored by eray orçunus's avatar eray orçunus Committed by Luca Stefani
Browse files

SystemUI: Enable and fix QS detail view, adapt layout to Pie



* Re-enabling dual-target(detail view) was easy as pie, but layout was from Oreo
  and DND tile was broken.

* I've applied QS Customize layout to details view to match it with Pie look.

* DND showDetail function was overriden to show new EnableZenModeDialog.
  New dialog's implementation were taken from old detail view, so I've disabled
  the new one, added the only new thing (priority-but-alarm-disabled warning text)
  to old one and enabled it.

* DND tile will still respect "Ask duration every time" setting and ask duration to
  the user, but this time with detail view.

In addition;
---------
SystemUI: Enable dualTarget on CellularTile

* To show DataUsageDetailView

Change-Id: If09b4ac51bb6df01b8ea9f59bccf123de65da8cf
(Owner: Chengzhi Hou <hcz017@gmail.com> )
---------
SystemUI: CellularTile: Don't call showDetail() when device is locked

* We recently enabled dualTarget for CellularTile which allowed us
  to toggle mobile data without unlocking device. Moving showDetail
  call to postQSRunnableDismissingKeyguard when the device is locked
  fixes this issue.

Change-Id: I16dc766166a33a309a2fc945e81fa15b5d194196
(Owner: Łukasz Patron <priv.luk@gmail.com> )
---------
SystemUI: Fix Data Usage tile to match Settings

Change-Id: Ieff3504baf3d13c77d06fcde87d5ac56d2586194
(Owner: Paul Keith <javelinanddart@gmail.com>)
---------

Change-Id: I8c88a1c52294f2f72d78a3b5585de24a85f0b6df
Signed-off-by: default avatareray orçunus <erayorcunus@gmail.com>
parent 1600570d
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -14,6 +14,6 @@ Copyright (C) 2014 The Android Open Source Project
    limitations under the License.
-->
<transition xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:drawable="@color/qs_detail_transition" />
    <item android:drawable="?android:attr/colorPrimary" />
    <item android:drawable="@drawable/qs_detail_background_transition" />
    <item android:drawable="@drawable/qs_detail_background_primary" />
</transition>
+21 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2014 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.
-->
<inset xmlns:android="http://schemas.android.com/apk/res/android">
    <shape>
        <solid android:color="?android:attr/colorPrimary"/>
        <corners android:radius="?android:attr/dialogCornerRadius" />
    </shape>
</inset>
+21 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2018 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.
-->
<inset xmlns:android="http://schemas.android.com/apk/res/android">
    <shape>
        <solid android:color="@color/qs_detail_transition"/>
        <corners android:radius="?android:attr/dialogCornerRadius" />
    </shape>
</inset>
+23 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2014 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.
-->
<inset xmlns:android="http://schemas.android.com/apk/res/android">
    <shape>
        <solid android:color="?android:attr/colorSecondary"/>
        <corners
            android:topLeftRadius="?android:attr/dialogCornerRadius"
            android:topRightRadius="?android:attr/dialogCornerRadius" />
    </shape>
</inset>
+36 −23
Original line number Diff line number Diff line
@@ -19,13 +19,25 @@
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@drawable/qs_detail_background"
    android:clickable="true"
    android:orientation="vertical"
    android:paddingBottom="8dp"
    android:visibility="invisible"
    android:elevation="4dp" >

    <View
        android:layout_width="match_parent"
        android:layout_height="@*android:dimen/quick_qs_offset_height"
        android:background="@android:color/transparent" />

    <com.android.keyguard.AlphaOptimizedLinearLayout
        android:id="@+id/detail_container"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="1"
        android:orientation="vertical"
        android:background="@drawable/qs_detail_background">

        <include
            android:id="@+id/qs_detail_header"
            layout="@layout/qs_detail_header"
@@ -56,5 +68,6 @@
        </com.android.systemui.qs.NonInterceptingScrollView>

        <include layout="@layout/qs_detail_buttons" />
    </com.android.keyguard.AlphaOptimizedLinearLayout>

</com.android.systemui.qs.QSDetail>
Loading