forked from organicmaps/organicmaps
Made chip ids unique in toolbar to avoid crash during orientation change since there is another 'rooms' id in the view hiearachy
This commit is contained in:
parent
7209f3686c
commit
f1b4e49705
2 changed files with 4 additions and 4 deletions
|
@ -16,7 +16,7 @@
|
|||
android:layout_height="wrap_content"
|
||||
app:chipSpacing="@dimen/margin_base">
|
||||
<com.google.android.material.chip.Chip
|
||||
android:id="@+id/choose_dates"
|
||||
android:id="@+id/chip_choose_dates"
|
||||
style="@style/MwmWidget.Chip.Action"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
|
@ -24,7 +24,7 @@
|
|||
app:chipIcon="@drawable/ic_datepicker"
|
||||
app:closeIcon="@drawable/ic_dropdown" />
|
||||
<com.google.android.material.chip.Chip
|
||||
android:id="@+id/rooms"
|
||||
android:id="@+id/chip_rooms"
|
||||
style="@style/MwmWidget.Chip.Action"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
|
|
|
@ -177,8 +177,8 @@ public class SearchToolbarController extends ToolbarController
|
|||
mFilterContainer = getToolbar().findViewById(R.id.filter_container);
|
||||
if (mFilterContainer != null)
|
||||
{
|
||||
mChooseDatesChip = mFilterContainer.findViewById(R.id.choose_dates);
|
||||
mRoomsChip = mFilterContainer.findViewById(R.id.rooms);
|
||||
mChooseDatesChip = mFilterContainer.findViewById(R.id.chip_choose_dates);
|
||||
mRoomsChip = mFilterContainer.findViewById(R.id.chip_rooms);
|
||||
//noinspection ConstantConditions
|
||||
mChooseDatesChip.setOnClickListener(mChooseDatesClickListener);
|
||||
mChooseDatesChip.setOnCloseIconClickListener(mChooseDatesClickListener);
|
||||
|
|
Loading…
Add table
Reference in a new issue