Skip to content

Commit

Permalink
fix: fix toolbar oopsie
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasGGamerM committed Sep 29, 2023
1 parent 03cb0b3 commit e8631e4
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,13 @@ protected List<View> getViewsForElevationEffect(){
@CallSuper
public void onViewCreated(View view, Bundle savedInstanceState){
super.onViewCreated(view, savedInstanceState);
if(wantsElevationOnScrollEffect())
if (getParentFragment() instanceof HasElevationOnScrollListener elevator)
list.addOnScrollListener(elevator.getElevationOnScrollListener());
else if(wantsElevationOnScrollEffect())
list.addOnScrollListener(elevationOnScrollListener=new ElevationOnScrollListener((FragmentRootLinearLayout) view, getViewsForElevationEffect()));
if(refreshLayout!=null){
if(refreshLayout!=null)
setRefreshLayoutColors(refreshLayout);
}

}

@Override
Expand Down

0 comments on commit e8631e4

Please sign in to comment.