mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-03 03:19:24 +01:00
Removed hiding of action bar
This needs to be replaced by AppBarLayout
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user