From 31a65faff379469b49c712a5837c67584dc97091 Mon Sep 17 00:00:00 2001 From: Sergey Solovyev Date: Sun, 20 Jan 2013 18:19:11 +0400 Subject: [PATCH] Onscreen fix: from notification to ongoing --- .../calculator/onscreen/CalculatorOnscreenService.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/android-app-onscreen/src/main/java/org/solovyev/android/calculator/onscreen/CalculatorOnscreenService.java b/android-app-onscreen/src/main/java/org/solovyev/android/calculator/onscreen/CalculatorOnscreenService.java index b260bf12..060a9385 100644 --- a/android-app-onscreen/src/main/java/org/solovyev/android/calculator/onscreen/CalculatorOnscreenService.java +++ b/android-app-onscreen/src/main/java/org/solovyev/android/calculator/onscreen/CalculatorOnscreenService.java @@ -15,7 +15,10 @@ import org.solovyev.android.AndroidUtils; import org.solovyev.android.calculator.CalculatorDisplayViewState; import org.solovyev.android.calculator.CalculatorEditorViewState; import org.solovyev.android.calculator.Locator; -import org.solovyev.android.calculator.external.*; +import org.solovyev.android.calculator.external.AndroidExternalListenersContainer; +import org.solovyev.android.calculator.external.DefaultExternalCalculatorIntentHandler; +import org.solovyev.android.calculator.external.ExternalCalculatorIntentHandler; +import org.solovyev.android.calculator.external.ExternalCalculatorStateUpdater; /** * User: serso @@ -188,6 +191,7 @@ public class CalculatorOnscreenService extends Service implements ExternalCalcul builder.setSmallIcon(R.drawable.kb_logo); builder.setContentTitle(getText(R.string.c_app_name)); builder.setContentText(getString(R.string.open_onscreen_calculator)); + builder.setOngoing(true); final Intent intent = createShowOnscreenViewIntent(this); builder.setContentIntent(PendingIntent.getBroadcast(this, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT));