summaryrefslogtreecommitdiffstats
path: root/core/java/android/app/Notification.java
diff options
context:
space:
mode:
authorJoe Onorato <joeo@google.com>2010-11-21 15:34:48 -0800
committerJoe Onorato <joeo@google.com>2010-11-21 16:16:29 -0800
commit52f80cd36f406725e85a1825741a45c69de3d898 (patch)
tree8d4e9132fbd8ef9cb25fb2e5c71d33b43fdf9771 /core/java/android/app/Notification.java
parent4cddc98a4b63961e3528c5a70cd5c55a67a0c60a (diff)
downloadframeworks_base-52f80cd36f406725e85a1825741a45c69de3d898.zip
frameworks_base-52f80cd36f406725e85a1825741a45c69de3d898.tar.gz
frameworks_base-52f80cd36f406725e85a1825741a45c69de3d898.tar.bz2
The icon sticks out of the ticker.
The ticker still needs to show up over the status bar, which will take a bit of window manager work, so it's just out of position for now. Change-Id: Ib5781925db63a22d9352a7b5017a36eec3229395
Diffstat (limited to 'core/java/android/app/Notification.java')
-rw-r--r--core/java/android/app/Notification.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java
index 3af6917..920e457 100644
--- a/core/java/android/app/Notification.java
+++ b/core/java/android/app/Notification.java
@@ -721,6 +721,12 @@ public class Notification implements Parcelable
return this;
}
+ public Builder setSound(Uri sound) {
+ mSound = sound;
+ mAudioStreamType = STREAM_DEFAULT;
+ return this;
+ }
+
public Builder setSound(Uri sound, int streamType) {
mSound = sound;
mAudioStreamType = streamType;
@@ -757,6 +763,10 @@ public class Notification implements Parcelable
public Builder setDefaults(int defaults) {
mDefaults = defaults;
+ int moreFlags = 0;
+ if ((defaults & DEFAULT_LIGHTS) != 0) {
+ moreFlags |= FLAG_SHOW_LIGHTS;
+ }
return this;
}