Revert old code
This commit is contained in:
parent
ba9c2ff682
commit
28f366f442
3 changed files with 2 additions and 3 deletions
|
@ -35,7 +35,7 @@
|
|||
<RelativeLayout
|
||||
android:id="@+id/snap_to_road_row"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="400dp"
|
||||
android:layout_height="@dimen/bottom_sheet_list_item_height"
|
||||
android:background="?attr/selectableItemBackground"
|
||||
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
||||
android:paddingEnd="@dimen/content_padding"
|
||||
|
|
|
@ -312,7 +312,6 @@ public class MapActivityActions implements DialogProvider {
|
|||
}
|
||||
}
|
||||
|
||||
adapter.setDefaultLayoutId(R.layout.bottom_sheet_dialog_fragment_item);
|
||||
final ArrayAdapter<ContextMenuItem> listAdapter =
|
||||
adapter.createListAdapter(mapActivity, getMyApplication().getSettings().isLightContent());
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@ public abstract class BottomSheetDialogFragment extends DialogFragment {
|
|||
final Window window = getDialog().getWindow();
|
||||
WindowManager.LayoutParams params = window.getAttributes();
|
||||
params.height = ViewGroup.LayoutParams.WRAP_CONTENT;
|
||||
// params.gravity = Gravity.BOTTOM;
|
||||
params.gravity = Gravity.BOTTOM;
|
||||
params.width = ViewGroup.LayoutParams.MATCH_PARENT;
|
||||
window.setAttributes(params);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue