From 02a7b78eab58840cf5c060e6861dfb9a539c3177 Mon Sep 17 00:00:00 2001 From: Adam Powell Date: Mon, 21 Jul 2014 17:29:43 -0700 Subject: [PATCH] Revert "Revert "Block focus with a touchscreen for ActionBars and Toolbars"" This reverts commit 9d629b6daba8c433fe014728e1ad07e034906c79. Once more, with feeling! Bug 16284253 --- core/res/res/layout/screen_action_bar.xml | 2 ++ core/res/res/layout/screen_toolbar.xml | 1 + core/res/res/values/styles.xml | 1 + 3 files changed, 4 insertions(+) diff --git a/core/res/res/layout/screen_action_bar.xml b/core/res/res/layout/screen_action_bar.xml index 5acb588eb35e6..b3a34789883b8 100644 --- a/core/res/res/layout/screen_action_bar.xml +++ b/core/res/res/layout/screen_action_bar.xml @@ -35,6 +35,7 @@ This is an optimized layout for a screen with the Action Bar enabled. android:layout_alignParentTop="true" style="?attr/actionBarStyle" android:transitionName="android:action_bar" + android:touchscreenBlocksFocus="true" android:gravity="top"> diff --git a/core/res/res/layout/screen_toolbar.xml b/core/res/res/layout/screen_toolbar.xml index 56815f86e0608..039e89f5cbbf3 100644 --- a/core/res/res/layout/screen_toolbar.xml +++ b/core/res/res/layout/screen_toolbar.xml @@ -35,6 +35,7 @@ This is an optimized layout for a screen with a toolbar enabled. android:layout_alignParentTop="true" style="?attr/actionBarStyle" android:transitionName="android:action_bar" + android:touchscreenBlocksFocus="true" android:gravity="top"> @style/Widget.Toolbar.Button.Navigation ?attr/homeAsUpIndicator 16dp + true