Removed hiding of action bar

This needs to be replaced by AppBarLayout
This commit is contained in:
M66B
2020-03-04 16:30:06 +01:00
parent de3fcb5db8
commit 05c4aa1bd5
4 changed files with 2 additions and 77 deletions

View File

@@ -155,35 +155,9 @@ public class FragmentFolders extends FragmentBase {
});
rvFolder.setHasFixedSize(false);
LinearLayoutManager llm = new LinearLayoutManager(getContext()) {
@Override
public void onScrollStateChanged(int state) {
super.onScrollStateChanged(state);
try {
int y = rvFolder.computeVerticalScrollOffset();
Log.i("Scroll state=" + state + " y=" + y);
setActionBar(y == 0);
} catch (Throwable ex) {
Log.w(ex);
}
}
};
LinearLayoutManager llm = new LinearLayoutManager(getContext());
rvFolder.setLayoutManager(llm);
rvFolder.addOnLayoutChangeListener(new View.OnLayoutChangeListener() {
@Override
public void onLayoutChange(View v, int left, int top, int right, int bottom, int oldLeft, int oldTop, int oldRight, int oldBottom) {
try {
int y = rvFolder.computeVerticalScrollOffset();
Log.i("Layout completed y=" + y);
setActionBar(y == 0);
} catch (Throwable ex) {
Log.w(ex);
}
}
});
if (!cards) {
DividerItemDecoration itemDecorator = new DividerItemDecoration(getContext(), llm.getOrientation()) {
@Override