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

Commit 37ad73d0 authored by Petr Cermak's avatar Petr Cermak
Browse files

Add smart reply container to all notification templates

This is the first step towards adding smart replies to Android
notifications:

One-pager:  http://go/1p-smart-reply
PRD:        http://go/srn-prd
Mocks:      http://go/p-notifications
Design doc: http://go/srn-design

This patch adds a smart_reply_container LinearLayout to all notification
templates. The container is gone by default, so all notifications should
still look the same.

Bug: 67765414
Test: View several notifications and confirm that they look the same
Change-Id: I28d3d078e3b88f6340713e7457744d8f367a567e
parent b574fca2
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -39,6 +39,10 @@
            android:layout_height="@dimen/notification_progress_bar_height"
            android:layout_marginTop="@dimen/notification_progress_margin_top"
            layout="@layout/notification_template_progress" />
        <include layout="@layout/notification_template_smart_reply_container"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="@dimen/notification_content_margin_bottom" />
    </LinearLayout>
    <include layout="@layout/notification_template_right_icon" />
</FrameLayout>
+6 −0
Original line number Diff line number Diff line
@@ -56,6 +56,12 @@
            android:id="@+id/notification_material_reply_container"
            android:layout_width="match_parent"
            android:layout_height="wrap_content" />
        <include layout="@layout/notification_template_smart_reply_container"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginStart="@dimen/notification_content_margin_start"
            android:layout_marginEnd="@dimen/notification_content_margin_end"
            android:layout_marginBottom="@dimen/notification_content_margin_bottom" />
    </LinearLayout>
    <include layout="@layout/notification_material_action_list" />
</FrameLayout>
+6 −0
Original line number Diff line number Diff line
@@ -64,6 +64,12 @@
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                />
        <include layout="@layout/notification_template_smart_reply_container"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginStart="@dimen/notification_content_margin_start"
            android:layout_marginEnd="@dimen/notification_content_margin_end"
            android:layout_marginBottom="@dimen/notification_content_margin_bottom" />
    </LinearLayout>
    <include layout="@layout/notification_material_action_list" />
</FrameLayout>
+6 −0
Original line number Diff line number Diff line
@@ -67,6 +67,12 @@
                android:id="@+id/notification_material_reply_container"
                android:layout_width="match_parent"
                android:layout_height="wrap_content" />
        <include layout="@layout/notification_template_smart_reply_container"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginStart="@dimen/notification_content_margin_start"
            android:layout_marginEnd="@dimen/notification_content_margin_end"
            android:layout_marginBottom="@dimen/notification_content_margin_bottom" />
    </LinearLayout>
    <include layout="@layout/notification_material_action_list" />
    <include layout="@layout/notification_template_right_icon" />
+6 −0
Original line number Diff line number Diff line
@@ -119,6 +119,12 @@
                android:id="@+id/notification_material_reply_container"
                android:layout_width="match_parent"
                android:layout_height="wrap_content" />
        <include layout="@layout/notification_template_smart_reply_container"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginStart="@dimen/notification_content_margin_start"
            android:layout_marginEnd="@dimen/notification_content_margin_end"
            android:layout_marginBottom="@dimen/notification_content_margin_bottom" />
    </LinearLayout>
    <include layout="@layout/notification_material_action_list" />
    <include layout="@layout/notification_template_right_icon" />
Loading