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

Commit f53716ed authored by Daniel Sandler's avatar Daniel Sandler Committed by Android Git Automerger
Browse files

am a1f084e8: Merge "Fix NPEs in StatusBarTest." into jb-dev

* commit 'a1f084e8':
  Fix NPEs in StatusBarTest.
parents cdea2a3e a1f084e8
Loading
Loading
Loading
Loading
+15 −7
Original line number Diff line number Diff line
@@ -715,20 +715,28 @@ public class NotificationTestList extends TestActivity
        new Test("Ten Notifications") {
            public void run() {
                for (int i = 0; i < 2; i++) {
                    Notification n = new Notification(NotificationTestList.this,
                    Notification n = new Notification(
                            kNumberedIconResIDs[i],
                            null, System.currentTimeMillis(), "Persistent #" + i,
                            "Notify me!!!" + i, null);
                    n.flags |= Notification.FLAG_ONGOING_EVENT;
                            null, System.currentTimeMillis());
                    n.number = i;
                    n.setLatestEventInfo(
                            NotificationTestList.this,
                            "Persistent #" + i,
                            "Notify me!!!" + i, 
                            null);
                    n.flags |= Notification.FLAG_ONGOING_EVENT;
                    mNM.notify((i+1)*10, n);
                }
                for (int i = 2; i < 10; i++) {
                    Notification n = new Notification(NotificationTestList.this,
                    Notification n = new Notification(
                            kNumberedIconResIDs[i],
                            null, System.currentTimeMillis(), "Persistent #" + i,
                            "Notify me!!!" + i, null);
                            null, System.currentTimeMillis());
                    n.number = i;
                    n.setLatestEventInfo(
                            NotificationTestList.this,
                            "Persistent #" + i,
                            "Notify me!!!" + i, 
                            null);
                    mNM.notify((i+1)*10, n);
                }
            }