am ca81fb41: merge from open-source master
Merge commit 'ca81fb411afd93378f01e3e13ef482693fd35a73' into kraken * commit 'ca81fb411afd93378f01e3e13ef482693fd35a73': Corrected StatusBarNotificationSample
This commit is contained in:
committed by
Android Git Automerger
commit
d350cf1bb8
@@ -174,7 +174,7 @@ public class StatusBarNotifications extends Activity {
|
|||||||
|
|
||||||
// Send the notification.
|
// Send the notification.
|
||||||
// We use a layout id because it is a unique number. We use it later to cancel.
|
// 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) {
|
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
|
// we use a string id because is a unique number. we use it later to cancel the
|
||||||
// notification
|
// notification
|
||||||
mNotificationManager.notify(R.layout.status_bar_notifications, notif);
|
mNotificationManager.notify(MOOD_NOTIFICATIONS, notif);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setDefault(int defaults) {
|
private void setDefault(int defaults) {
|
||||||
@@ -231,8 +231,8 @@ public class StatusBarNotifications extends Activity {
|
|||||||
notification.defaults = defaults;
|
notification.defaults = defaults;
|
||||||
|
|
||||||
mNotificationManager.notify(
|
mNotificationManager.notify(
|
||||||
R.layout.status_bar_notifications, // we use a string id because it is a unique
|
MOOD_NOTIFICATIONS, // we use a string id because it is a unique
|
||||||
// number. we use it later to cancel the
|
// number. we use it later to cancel the notification
|
||||||
notification); // notification
|
notification);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user