@Override public void openDetails(View view, WeatherListItemModel weatherListItemModel) { if (getActivity().getActionBar() != null) getActivity().getActionBar().setDisplayHomeAsUpEnabled(true); WeatherDetailView weatherDetailView = Views.find(mDetailsLayout, R.id.detailView); weatherDetailView.setmWeatherListItemModel(weatherListItemModel); mUnfoldableView.unfold(view, mDetailsLayout); if (weatherListItemModel.mWeatherLocalModel != null) { getActivity().getActionBar().setTitle(weatherListItemModel.mWeatherLocalModel.localName); } }
@Override public void openDetails(View coverView, Painting painting) { if (getActivity().getActionBar() != null) getActivity().getActionBar().setDisplayHomeAsUpEnabled(true); mUnfoldableView.unfold(coverView, mDetailsLayout); }