commit 637bf9e923210b04e3fae8fed581e5f4170d1d06
parent 946568d759d26b1851f7dfc54cc1889fe983e95d
Author: Jan Dankert <devnull@localhost>
Date: Sun, 5 Feb 2012 19:37:00 +0100
Fix: Keine Vibration nutzen, da sonst SecurityException fliegt.
Diffstat:
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
- android:versionCode="2" android:versionName="1.1" package="de.mtbnews.android">
+ android:versionCode="3" android:versionName="1.2" package="de.mtbnews.android">
<application android:icon="@drawable/ibc_icon" android:name=".IBCApplication"
android:label="@string/app_name" android:theme="@style/IBC">
diff --git a/src/de/mtbnews/android/service/SubscriptionService.java b/src/de/mtbnews/android/service/SubscriptionService.java
@@ -299,7 +299,8 @@ public class SubscriptionService extends Service
+ (titleExtra != null ? " " + titleExtra : ""),
content, intent);
- notification.defaults = Notification.DEFAULT_ALL;
+ notification.defaults = Notification.DEFAULT_LIGHTS
+ | Notification.DEFAULT_SOUND; // Vibration benötigt Permission.
notification.flags = Notification.FLAG_AUTO_CANCEL
| Notification.FLAG_ONLY_ALERT_ONCE;