diff options
author | Julia Reynolds <juliacr@google.com> | 2017-04-25 13:52:49 -0400 |
---|---|---|
committer | Julia Reynolds <juliacr@google.com> | 2017-04-25 17:00:05 -0400 |
commit | bad42976009ffb61010136ed8055f9e0f6d2e416 (patch) | |
tree | 41c3243187a4e74ddcac2278248fe601c5d2dcb5 /tests/StatusBar | |
parent | cd68c334bad676e4b29db77c78f61eb48fd75df1 (diff) |
Api updates
- Better documentation on DEFAULT_CHANNEL_ID
- Renaming getChannel/setChannel/getTimeout/setTimeout
- Add documentation to getShortcutId
- @hide parcel constructors
Test: make, make cts
Bug: 37672218
Change-Id: I695b2620c51638a84930e9d1c5fbfd6d85699b55
Diffstat (limited to 'tests/StatusBar')
-rw-r--r-- | tests/StatusBar/src/com/android/statusbartest/NotificationTestList.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/StatusBar/src/com/android/statusbartest/NotificationTestList.java b/tests/StatusBar/src/com/android/statusbartest/NotificationTestList.java index c49be88ee428..93677e35dc4f 100644 --- a/tests/StatusBar/src/com/android/statusbartest/NotificationTestList.java +++ b/tests/StatusBar/src/com/android/statusbartest/NotificationTestList.java @@ -124,7 +124,6 @@ public class NotificationTestList extends TestActivity Notification n = new Notification.Builder(NotificationTestList.this, "phone call") .setSmallIcon(R.drawable.icon2) - .setChannel(phoneCall.getId()) .setFullScreenIntent(makeIntent2(), true) .build(); mNM.notify(7001, n); @@ -366,7 +365,7 @@ public class NotificationTestList extends TestActivity Notification n = new Notification.Builder(NotificationTestList.this, "default") .setSmallIcon(R.drawable.icon2) .setContentTitle("timeout in a minute") - .setTimeout(System.currentTimeMillis() + (1000 * 60)) + .setTimeoutAfter(System.currentTimeMillis() + (1000 * 60)) .build(); mNM.notify("timeout_min", 7013, n); } @@ -378,7 +377,7 @@ public class NotificationTestList extends TestActivity .setSmallIcon(R.drawable.icon2) .setContentTitle("RED IS BEST") .setContentText("or is blue?") - .setTimeout(System.currentTimeMillis() + (1000 * 60)) + .setTimeoutAfter(System.currentTimeMillis() + (1000 * 60)) .setColor(Color.RED) .setFlag(Notification.FLAG_ONGOING_EVENT, true) .setColorized(true) |