From 4c496c806380653642f17eb8950ba9efd7d43299 Mon Sep 17 00:00:00 2001 From: jrizzoli Date: Wed, 6 May 2015 20:59:59 +0200 Subject: Browser: update UI * Res - Rename (#themersgottahate) - Vectors - Card-Tabs - CleanUp * Interface - Longpress fab to open incognito tab - New icon - Better urlbar - Fix tab animations - Remap PieControl * Features - Immersive mode (replace jb fullscreen) Change-Id: I2fde4242f477359dc8af18d1b7752750058cd6e9 Signed-off-by: jrizzoli --- src/com/android/browser/Controller.java | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) (limited to 'src/com/android/browser/Controller.java') diff --git a/src/com/android/browser/Controller.java b/src/com/android/browser/Controller.java index 8c77270..f006986 100644 --- a/src/com/android/browser/Controller.java +++ b/src/com/android/browser/Controller.java @@ -79,6 +79,8 @@ import android.webkit.WebChromeClient.FileChooserParams; import android.webkit.WebIconDatabase; import android.webkit.WebSettings; import android.webkit.WebView; +import android.widget.Button; +import android.widget.EditText; import android.widget.Toast; import com.android.browser.IntentHandler.UrlData; @@ -365,6 +367,7 @@ public class Controller && BrowserActivity.ACTION_SHOW_BOOKMARKS.equals(intent.getAction())) { bookmarksOrHistoryPicker(ComboViews.Bookmarks); } + } private static class PruneThumbnails implements Runnable { @@ -396,7 +399,6 @@ public class Controller cr.delete(Thumbnails.CONTENT_URI, where.toString(), null); } } - } @Override @@ -1586,9 +1588,6 @@ public class Controller final MenuItem uaSwitcher = menu.findItem(R.id.ua_desktop_menu_id); uaSwitcher.setChecked(isDesktopUa); - final MenuItem fullscreen = menu.findItem(R.id.fullscreen_menu_id); - fullscreen.setChecked(mUi.isFullscreen()); - menu.setGroupVisible(R.id.LIVE_MENU, isLive); menu.setGroupVisible(R.id.SNAPSHOT_MENU, !isLive); menu.setGroupVisible(R.id.COMBO_MENU, false); @@ -1652,7 +1651,7 @@ public class Controller case R.id.back_menu_id: getCurrentTab().goBack(); - break; + break; case R.id.forward_menu_id: getCurrentTab().goForward(); @@ -1716,9 +1715,6 @@ public class Controller toggleUserAgent(); break; - case R.id.fullscreen_menu_id: - toggleFullscreen(); - case R.id.window_one_menu_id: case R.id.window_two_menu_id: case R.id.window_three_menu_id: @@ -1756,11 +1752,6 @@ public class Controller } @Override - public void toggleFullscreen() { - mUi.setFullscreen(!mUi.isFullscreen()); - } - - @Override public void findOnPage() { getCurrentTopWebView().showFindDialog(null, true); } -- cgit v1.1