fix FC on no sound effect set

obj_origin
Georg Lukas 2011-11-10 21:30:19 +01:00
rodzic 358aa465bc
commit 4e9ef05a90
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -71,7 +71,9 @@ abstract class ServiceNotifier {
ctx.getSystemService(Context.VIBRATOR_SERVICE).asInstanceOf[Vibrator]
.vibrate(Array[Long](0, 200, 200), -1)
}
n.sound = Uri.parse(prefs.getString(prefix + "notify_ringtone", null))
val sound = prefs.getString(prefix + "notify_ringtone", null)
if (sound != null)
n.sound = Uri.parse(sound)
}
def notifyMessage(ctx : Service, prefs : PrefsWrapper,