Merge pull request #10908 from osmandapp/add_restart_required_after_import

Add text if app restart required after settings import
This commit is contained in:
Vitaliy 2021-02-16 19:47:08 +02:00 committed by GitHub
commit c9fda1bfc1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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="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>

View file

@ -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) {