touch improvemnts: Show side bar by clicking on the left padding area

This commit is contained in:
Yuriy Liskov 2024-03-25 02:50:29 +02:00
parent 099766a9b1
commit b8399ef139
1 changed files with 4 additions and 0 deletions

View File

@ -1300,6 +1300,10 @@ public class BrowseSupportFragment extends BaseSupportFragment {
mScaleFrameLayout.setPivotX(0);
mScaleFrameLayout.setPivotY(mContainerListAlignTop);
// MOD: touch support improvements. Show side bar by clicking on the left padding area.
View dock = root.findViewById(R.id.browse_headers_dock);
dock.setOnClickListener(v -> startHeadersTransitionInternal(true));
if (mBrandColorSet) {
mHeadersSupportFragment.setBackgroundColor(mBrandColor);
}