fix "Latest OpenStreetMap..." bar with time now scrollable;

add free space under the "Available maps" card;
This commit is contained in:
Skalii 2021-03-26 14:31:22 +02:00
parent e3b4786556
commit 5c83a31c77
2 changed files with 6 additions and 3 deletions

View file

@ -41,8 +41,6 @@
<include layout="@layout/preference_toolbar_switch" /> <include layout="@layout/preference_toolbar_switch" />
<include layout="@layout/list_item_import" />
</com.google.android.material.appbar.AppBarLayout> </com.google.android.material.appbar.AppBarLayout>
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout <androidx.swiperefreshlayout.widget.SwipeRefreshLayout
@ -59,6 +57,8 @@
android:footerDividersEnabled="false" android:footerDividersEnabled="false"
android:groupIndicator="@null" android:groupIndicator="@null"
android:headerDividersEnabled="false" android:headerDividersEnabled="false"
android:paddingBottom="@dimen/bottom_sheet_list_item_height"
android:clipToPadding="false"
android:orientation="vertical" android:orientation="vertical"
tools:context=".liveupdates.LiveUpdatesFragment" /> tools:context=".liveupdates.LiveUpdatesFragment" />

View file

@ -203,8 +203,11 @@ public class LiveUpdatesFragment extends BaseOsmAndDialogFragment implements OnL
toolbarSwitchContainer = view.findViewById(R.id.toolbar_switch_container); toolbarSwitchContainer = view.findViewById(R.id.toolbar_switch_container);
updateToolbarSwitch(settings.IS_LIVE_UPDATES_ON.get()); updateToolbarSwitch(settings.IS_LIVE_UPDATES_ON.get());
View timeContainer = view.findViewById(R.id.item_import_container); View headerView = inflater.inflate(R.layout.list_item_import, listView, false);
View timeContainer = headerView.findViewById(R.id.item_import_container);
AndroidUtils.setListItemBackground(app, timeContainer, nightMode); AndroidUtils.setListItemBackground(app, timeContainer, nightMode);
AndroidUiHelper.setVisibility(View.VISIBLE, headerView.findViewById(R.id.bottom_divider));
listView.addHeaderView(headerView);
AppCompatImageView descriptionIcon = timeContainer.findViewById(R.id.icon); AppCompatImageView descriptionIcon = timeContainer.findViewById(R.id.icon);
Drawable icon = UiUtilities.createTintedDrawable(app, R.drawable.ic_action_time, Drawable icon = UiUtilities.createTintedDrawable(app, R.drawable.ic_action_time,