am 171cd067: am 978959e6: Do not vibrate in vibrate mode if ringtone is silent
* commit '171cd0678008a48ce281f2f9b631108bc27dbefd':
Do not vibrate in vibrate mode if ringtone is silent
diff --git a/src/com/android/email/NotificationController.java b/src/com/android/email/NotificationController.java
index 2331f5a..1dc2149 100644
--- a/src/com/android/email/NotificationController.java
+++ b/src/com/android/email/NotificationController.java
@@ -677,7 +677,7 @@
defaults |= Notification.DEFAULT_VIBRATE;
}
- builder.setSound((ringtoneUri == null) ? null : Uri.parse(ringtoneUri))
+ builder.setSound(TextUtils.isEmpty(ringtoneUri) ? null : Uri.parse(ringtoneUri))
.setDefaults(defaults);
}