Fix heads up action bar switch handling for tablets.

Similar to commit 91f47b9f55467f1c8de4c6c732375d9f6f3c3942.

Change-Id: Ia4c5e8169ccd6786d2284eccec30397cac48d218
(cherry picked from commit 39bb846fe01c557e162ff26804b37612855ef325)