From 9626984a0797493064a333760a31b0c6107090cb Mon Sep 17 00:00:00 2001 From: Georg Lukas Date: Mon, 30 Jun 2014 09:39:34 +0200 Subject: [PATCH] switch to API 19, Holo UI --- AndroidManifest.xml | 4 ++-- project.properties | 2 +- res/values-v11/themes.xml | 8 ++++++++ res/values/themes.xml | 6 ++++++ src/ServiceNotifier.scala | 4 ++-- 5 files changed, 19 insertions(+), 5 deletions(-) create mode 100644 res/values-v11/themes.xml create mode 100644 res/values/themes.xml diff --git a/AndroidManifest.xml b/AndroidManifest.xml index b14af2e..9f1ace1 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -6,7 +6,7 @@ android:installLocation="auto"> + android:targetSdkVersion="19" /> @@ -63,7 +63,7 @@ + android:theme="@style/MapViewTheme" > diff --git a/project.properties b/project.properties index 7d79ddd..0762792 100644 --- a/project.properties +++ b/project.properties @@ -8,7 +8,7 @@ # project structure. # Project target. -target=Google Inc.:Google APIs:8 +target=Google Inc.:Google APIs:19 # work around yet another android SDK fuckup renderscript.opt.level=O0 diff --git a/res/values-v11/themes.xml b/res/values-v11/themes.xml new file mode 100644 index 0000000..dd9615b --- /dev/null +++ b/res/values-v11/themes.xml @@ -0,0 +1,8 @@ + + + + diff --git a/res/values/themes.xml b/res/values/themes.xml new file mode 100644 index 0000000..2dbfc08 --- /dev/null +++ b/res/values/themes.xml @@ -0,0 +1,6 @@ + + + + diff --git a/src/ServiceNotifier.scala b/src/ServiceNotifier.scala index 87768bf..f02091c 100644 --- a/src/ServiceNotifier.scala +++ b/src/ServiceNotifier.scala @@ -99,12 +99,12 @@ abstract class ServiceNotifier { class DonutNotifier extends ServiceNotifier { def start(ctx : Service, status : String) = { - ctx.setForeground(true) + //ctx.setForeground(true) getNotificationMgr(ctx).notify(SERVICE_NOTIFICATION, newNotification(ctx, status)) } def stop(ctx : Service) = { - ctx.setForeground(false) + //ctx.setForeground(false) getNotificationMgr(ctx).cancel(SERVICE_NOTIFICATION) } }