Fix scrolling comments list

AppBarLayout mostly gets it, but we still need to uphold our own part -
expanding it back after focus returns to it
This commit is contained in:
Alexander 2019-09-20 16:02:16 +07:00 committed by Alexander--
parent 3f0842535d
commit 0d0b3b888f
3 changed files with 94 additions and 1 deletions

View file

@ -34,6 +34,7 @@ import org.schabi.newpipe.util.NavigationHelper;
import org.schabi.newpipe.util.OnClickGesture;
import org.schabi.newpipe.util.StateSaver;
import org.schabi.newpipe.util.StreamDialogEntry;
import org.schabi.newpipe.views.SuperScrollLayoutManager;
import java.util.List;
import java.util.Queue;
@ -147,7 +148,7 @@ public abstract class BaseListFragment<I, N> extends BaseStateFragment<I> implem
}
protected RecyclerView.LayoutManager getListLayoutManager() {
return new LinearLayoutManager(activity);
return new SuperScrollLayoutManager(activity);
}
protected RecyclerView.LayoutManager getGridLayoutManager() {