Add text if app restart required after settings import

This commit is contained in:
cepprice 2021-02-16 20:15:39 +05:00
parent 8ff6eff178
commit fe8bd8549c
2 changed files with 3 additions and 0 deletions

View file

@ -12,6 +12,7 @@
--> -->
<string name="app_restart_required">Application restart required to apply some settings.</string>
<string name="on_pause">On pause</string> <string name="on_pause">On pause</string>
<string name="track_recording_description">Are you sure you want to stop recording?\nAll unsaved data will be lost.</string> <string name="track_recording_description">Are you sure you want to stop recording?\nAll unsaved data will be lost.</string>
<string name="track_recording_title">Track recording stopped</string> <string name="track_recording_title">Track recording stopped</string>

View file

@ -102,6 +102,8 @@ public class ImportCompleteFragment extends BaseOsmAndFragment {
} }
}); });
if (needRestart) { if (needRestart) {
description.append("\n\n");
description.append(app.getString(R.string.app_restart_required));
setupRestartButton(root); setupRestartButton(root);
} }
if (Build.VERSION.SDK_INT >= 21) { if (Build.VERSION.SDK_INT >= 21) {