Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a69e6763 authored by arangelov's avatar arangelov
Browse files

Add the tabs height when determining the height of the share sheet

Test: atest com.android.internal.app.ResolverActivityTest
Test: atest com.android.internal.app.ChooserActivityTest
Bug: 142537267
Bug: 142538125
Change-Id: I056730d69163591a84d7c3b70c52a646579c8830
parent 9040dc25
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2424,6 +2424,10 @@ public class ChooserActivity extends ResolverActivity implements
                    offset += findViewById(R.id.content_preview_container).getHeight();
                }

                if (hasWorkProfile() && ENABLE_TABBED_VIEW) {
                    offset += findViewById(R.id.tabs).getHeight();
                }

                int directShareHeight = 0;
                rowsToShow = Math.min(4, rowsToShow);
                for (int i = 0, childCount = recyclerView.getChildCount();