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

Commit 3f76aa77 authored by Joe Onorato's avatar Joe Onorato
Browse files

Test for using the right size of notification info text.

Change-Id: Iac8764542ddcd3ef0375f6d6d03225e9f6c2fc1c
parent 3fe7f2f2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -221,7 +221,7 @@
        <item name="android:textStyle">bold</item>
    </style>
    <style name="TextAppearance.StatusBar.EventContent.Info">
        <item name="android:textAppearance">?android:attr/textAppearanceMedium</item>
        <item name="android:textAppearance">?android:attr/textAppearanceLarge</item>
        <item name="android:textColor">#ff272727</item>
    </style>

+1 −0
Original line number Diff line number Diff line
@@ -21,6 +21,7 @@
    android:layout_height="wrap_content"
    android:orientation="horizontal"
    android:background="#ff1d1d1d"
    android:paddingRight="48dp"
    >
    <!--
    android:background="@drawable/ticker_background"
+18 −1
Original line number Diff line number Diff line
@@ -76,6 +76,24 @@ public class NotificationBuilderTest extends TestActivity
            }
        },

        new Test("Basic Content w/ Info (1)") {
            public void run() {
                int id = 1;

                Notification.Builder b = new Notification.Builder(NotificationBuilderTest.this);

                b.setWhen(System.currentTimeMillis());
                b.setSmallIcon(R.drawable.ic_statusbar_chat);
                b.setContentTitle("Title");
                b.setContentText("text\nline2");
                b.setContentIntent(makeContentIntent(id));
                b.setDeleteIntent(makeDeleteIntent(id));
                b.setContentInfo("Snoozed");

                mNM.notify(id, b.getNotification());
            }
        },

        new Test("Basic Content w/ Number (1)") {
            public void run() {
                int id = 1;
@@ -93,7 +111,6 @@ public class NotificationBuilderTest extends TestActivity
                mNM.notify(id, b.getNotification());
            }
        },

    };

    private PendingIntent makeContentIntent(int id) {