• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

frameworks/base


Commit MetaInfo

Revision3da0876ee78b75520ae356777f272b4cb13c9d83 (tree)
Time2009-06-11 05:28:56
AuthorAndroid Code Review <code-review@andr...>
CommiterAndroid Code Review

Log Message

Merge change 10328

* changes:

Prevent IndexOutOfBoundsException on toString() if vibrate array is empty (non null) example: notification.vibrate = new long[0];

Change Summary

Incremental Difference

--- a/core/java/android/app/Notification.java
+++ b/core/java/android/app/Notification.java
@@ -460,7 +460,9 @@ public class Notification implements Parcelable
460460 sb.append(this.vibrate[i]);
461461 sb.append(',');
462462 }
463- sb.append(this.vibrate[N]);
463+ if (N != -1) {
464+ sb.append(this.vibrate[N]);
465+ }
464466 sb.append("]");
465467 } else if ((this.defaults & DEFAULT_VIBRATE) != 0) {
466468 sb.append("default");