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

Commit 1d1ec1a5 authored by Fengjiang Li's avatar Fengjiang Li
Browse files

[Talkback] Focus on "Widget" header when widget bottom sheet is opened

Fix: 209579563
Test: turn on talkback, open widgets and verified "Widgets" header is focused
Change-Id: Iee35720b8643e13a12b7936ce090369799dd2a04
parent d382a488
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -608,6 +608,12 @@ public class WidgetsFullSheet extends BaseWidgetSheet
        }
    }

    /** b/209579563: "Widgets" header should be focused first. */
    @Override
    protected View getAccessibilityInitialFocusView() {
        return mHeaderTitle;
    }

    protected float getMaxTableHeight(float noWidgetsViewHeight) {
        return (mContent.getMeasuredHeight()
                - mTabsHeight - getHeaderViewHeight()