From fe8bd8549cf9adc12ad42310b5e195ee23ea406f Mon Sep 17 00:00:00 2001 From: cepprice Date: Tue, 16 Feb 2021 20:15:39 +0500 Subject: [PATCH] Add text if app restart required after settings import --- OsmAnd/res/values/strings.xml | 1 + .../osmand/plus/settings/fragments/ImportCompleteFragment.java | 2 ++ 2 files changed, 3 insertions(+) diff --git a/OsmAnd/res/values/strings.xml b/OsmAnd/res/values/strings.xml index d2c6622fe6..c8c73ec331 100644 --- a/OsmAnd/res/values/strings.xml +++ b/OsmAnd/res/values/strings.xml @@ -12,6 +12,7 @@ --> + Application restart required to apply some settings. On pause Are you sure you want to stop recording?\nAll unsaved data will be lost. Track recording stopped diff --git a/OsmAnd/src/net/osmand/plus/settings/fragments/ImportCompleteFragment.java b/OsmAnd/src/net/osmand/plus/settings/fragments/ImportCompleteFragment.java index abcd5afc0a..29f90c2cfe 100644 --- a/OsmAnd/src/net/osmand/plus/settings/fragments/ImportCompleteFragment.java +++ b/OsmAnd/src/net/osmand/plus/settings/fragments/ImportCompleteFragment.java @@ -102,6 +102,8 @@ public class ImportCompleteFragment extends BaseOsmAndFragment { } }); if (needRestart) { + description.append("\n\n"); + description.append(app.getString(R.string.app_restart_required)); setupRestartButton(root); } if (Build.VERSION.SDK_INT >= 21) {