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

Commit 251957d7 authored by Jorim Jaggi's avatar Jorim Jaggi
Browse files

Double tap interaction for notifications on lockscreen.

This change also uses a different background for notifications on the
lockscreen and moves the background drawable from the templates to
SystemUI.

Bug: 13635952
Change-Id: Icf09178065aa7fc0472adef70342d637fbcca785
parent 0c93c710
Loading
Loading
Loading
Loading
+12 −2
Original line number Diff line number Diff line
@@ -16,6 +16,16 @@
  -->

<selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:state_pressed="true"  android:drawable="@drawable/notification_quantum_press" />
    <item android:state_pressed="false" android:drawable="@drawable/notification_quantum_background" />
    <item android:state_pressed="true">
        <shape>
            <solid android:color="#ffd0d0d0" />
            <corners android:radius="@dimen/notification_quantum_rounded_rect_radius" />
        </shape>
    </item>
    <item>
        <shape>
            <solid android:color="#fffafafa" />
            <corners android:radius="@dimen/notification_quantum_rounded_rect_radius" />
        </shape>
    </item>
</selector>
 No newline at end of file
+11 −4
Original line number Diff line number Diff line
@@ -15,7 +15,14 @@
  ~ limitations under the License
  -->

<shape xmlns:android="http://schemas.android.com/apk/res/android">
    <solid android:color="#ffffffff" />
<touch-feedback
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:tint="#ffffffff"
    >
    <item>
        <shape>
            <solid android:color="#f0d0d0d0" />
            <corners android:radius="@dimen/notification_quantum_rounded_rect_radius" />
        </shape>
    </item>
</touch-feedback>
 No newline at end of file
+0 −1
Original line number Diff line number Diff line
@@ -17,7 +17,6 @@

<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:internal="http://schemas.android.com/apk/prv/res/android"
    android:background="@android:drawable/notification_quantum_bg"
    android:id="@+id/status_bar_latest_event_content"
    android:layout_width="match_parent"
    android:layout_height="64dp"
+0 −1
Original line number Diff line number Diff line
@@ -17,7 +17,6 @@

<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:internal="http://schemas.android.com/apk/prv/res/android"
    android:background="@android:drawable/notification_quantum_bg"
    android:id="@+id/status_bar_latest_event_content"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
+0 −1
Original line number Diff line number Diff line
@@ -17,7 +17,6 @@

<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:internal="http://schemas.android.com/apk/prv/res/android"
    android:background="@android:drawable/notification_quantum_bg"
    android:id="@+id/status_bar_latest_event_content"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
Loading