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
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 @@
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 Builder setDefaults(int defaults) {
mDefaults = defaults;
+ int moreFlags = 0;
+ if ((defaults & DEFAULT_LIGHTS) != 0) {
+ moreFlags |= FLAG_SHOW_LIGHTS;
+ }
return this;
}