From b152ea3ea0d16e3034f81b84f0bd900cd2b66b13 Mon Sep 17 00:00:00 2001 From: Zhao Wei Liew Date: Tue, 5 Jan 2016 13:51:02 +0800 Subject: Browser: Resurface incognito button The current method of entering incognito mode is too discreet, and there is no way of knowing how to enter it (long press new tab FAB). Resurface the incognito button in the tab navigation screen. Furthermore, on tablets, there is no way to enter incognito mode AFAIK (or it is ridiculously difficult to find). On tablets, add an entry to the overflow menu for creating new incognito tabs. Change-Id: I1c81d2addd16c11480d978aebf07336307ec694f --- res/layout-land/nav_screen.xml | 1 - res/layout/nav_screen.xml | 1 - res/menu/browser.xml | 5 +++++ src/com/android/browser/Controller.java | 4 ++++ src/com/android/browser/PhoneUi.java | 12 ++++++++---- 5 files changed, 17 insertions(+), 6 deletions(-) diff --git a/res/layout-land/nav_screen.xml b/res/layout-land/nav_screen.xml index 4091573..ac70ab2 100644 --- a/res/layout-land/nav_screen.xml +++ b/res/layout-land/nav_screen.xml @@ -49,7 +49,6 @@ style="@style/BrowserButton" android:gravity="center_vertical" android:contentDescription="@string/accessibility_button_newincognitotab" - android:visibility="gone" android:src="@drawable/ic_incognito" /> +