From 9bfa323af163aa5439eb44c25e50d8366a260da7 Mon Sep 17 00:00:00 2001 From: Christian Mehlmauer Date: Tue, 18 May 2010 23:44:32 +0200 Subject: [PATCH] Corrected StatusBarNotificationSample Change-Id: I892e84198cfe288e673b81e8ffc331525fee09b8 --- .../android/apis/app/StatusBarNotifications.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/samples/ApiDemos/src/com/example/android/apis/app/StatusBarNotifications.java b/samples/ApiDemos/src/com/example/android/apis/app/StatusBarNotifications.java index 97f6199c1..9b911cca5 100644 --- a/samples/ApiDemos/src/com/example/android/apis/app/StatusBarNotifications.java +++ b/samples/ApiDemos/src/com/example/android/apis/app/StatusBarNotifications.java @@ -174,7 +174,7 @@ public class StatusBarNotifications extends Activity { // Send the notification. // We use a layout id because it is a unique number. We use it later to cancel. - mNotificationManager.notify(R.layout.status_bar_notifications, notification); + mNotificationManager.notify(MOOD_NOTIFICATIONS, notification); } private void setMoodView(int moodId, int textId) { @@ -202,7 +202,7 @@ public class StatusBarNotifications extends Activity { // we use a string id because is a unique number. we use it later to cancel the // notification - mNotificationManager.notify(R.layout.status_bar_notifications, notif); + mNotificationManager.notify(MOOD_NOTIFICATIONS, notif); } private void setDefault(int defaults) { @@ -231,8 +231,8 @@ public class StatusBarNotifications extends Activity { notification.defaults = defaults; mNotificationManager.notify( - R.layout.status_bar_notifications, // we use a string id because it is a unique - // number. we use it later to cancel the - notification); // notification + MOOD_NOTIFICATIONS, // we use a string id because it is a unique + // number. we use it later to cancel the notification + notification); } }