am 722b7bc2: Do not vibrate in vibrate mode if ringtone is silent

* commit '722b7bc29d3f5be029d21f5587b7bc675051073b':
  Do not vibrate in vibrate mode if ringtone is silent
This commit is contained in:
Scott Kennedy 2012-11-28 19:53:59 -08:00 committed by Android Git Automerger
commit dec1415d7c

View File

@ -766,7 +766,7 @@ public class NotificationController {
defaults |= Notification.DEFAULT_VIBRATE;
}
builder.setSound((ringtoneUri == null) ? null : Uri.parse(ringtoneUri))
builder.setSound(TextUtils.isEmpty(ringtoneUri) ? null : Uri.parse(ringtoneUri))
.setDefaults(defaults);
}