Fix Talkback should talk the strings in tutorial on the top screen
to guide user to exit one-handed mode. Remove Tutorial view's LayoutParams.FLAG_NOT_TOUCHABLE and FLAG_NOT_FOCUSABLE to enable Talkback talks. Bug: 157121791 Test: manual Test: atest SystemUITests Change-Id: I36235fa839f33cc4f7aa73e07ae73b8e5880acbd
This commit is contained in:
@@ -163,9 +163,7 @@ public class OneHandedTutorialHandler implements OneHandedTransitionCallback, Du
|
||||
final WindowManager.LayoutParams lp = new WindowManager.LayoutParams(
|
||||
mDisplaySize.x, mTutorialAreaHeight, 0, 0,
|
||||
WindowManager.LayoutParams.TYPE_NAVIGATION_BAR_PANEL,
|
||||
WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN
|
||||
| WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE
|
||||
| WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE,
|
||||
WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN,
|
||||
PixelFormat.TRANSLUCENT);
|
||||
lp.gravity = Gravity.TOP | Gravity.LEFT;
|
||||
lp.privateFlags |= WindowManager.LayoutParams.SYSTEM_FLAG_SHOW_FOR_ALL_USERS;
|
||||
|
||||
Reference in New Issue
Block a user