Merge pull request #10169 from osmandapp/fix-crash-profile-import

Crash on profile import
This commit is contained in:
Vitaliy 2020-11-12 15:25:20 +00:00 committed by GitHub
commit cdf6f1df73
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -141,7 +141,7 @@ public class ImportSettingsFragment extends BaseOsmAndFragment {
progressBar = root.findViewById(R.id.progress_bar); progressBar = root.findViewById(R.id.progress_bar);
setupToolbar(toolbar); setupToolbar(toolbar);
ViewCompat.setNestedScrollingEnabled(expandableList, true); ViewCompat.setNestedScrollingEnabled(expandableList, true);
View header = inflater.inflate(R.layout.list_item_description_header, container, false); View header = inflater.inflate(R.layout.list_item_description_header, null);
description = header.findViewById(R.id.description); description = header.findViewById(R.id.description);
description.setText(R.string.select_data_to_import); description.setText(R.string.select_data_to_import);
expandableList.addHeaderView(header); expandableList.addHeaderView(header);