summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/BrowserActivity.java
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2011-08-17 10:15:16 -0700
committerJohn Reck <jreck@google.com>2011-08-17 10:15:16 -0700
commit56c1fcf7774d4ee943fbda808e37840459502e20 (patch)
treef725280af996ef8fbaa6ccf2f672460395c5a040 /src/com/android/browser/BrowserActivity.java
parent86bc0480945215da742f423cda4e35b858f53cea (diff)
downloadpackages_apps_browser-56c1fcf7774d4ee943fbda808e37840459502e20.zip
packages_apps_browser-56c1fcf7774d4ee943fbda808e37840459502e20.tar.gz
packages_apps_browser-56c1fcf7774d4ee943fbda808e37840459502e20.tar.bz2
Faster all the things!
Bug: 5177959 Improve browser startup. Elinate IO access on UI thread during startup by removing the super legacy ClearThumbnails task. Also rework how the hardware acceleration debug setting works to remove the requirement for initialized BrowserSettings in onCreate Change-Id: I4c1014d380827af4833586e6a3ae842fd59aa48b
Diffstat (limited to 'src/com/android/browser/BrowserActivity.java')
-rw-r--r--src/com/android/browser/BrowserActivity.java18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/com/android/browser/BrowserActivity.java b/src/com/android/browser/BrowserActivity.java
index 084ace0..690e29f 100644
--- a/src/com/android/browser/BrowserActivity.java
+++ b/src/com/android/browser/BrowserActivity.java
@@ -65,24 +65,6 @@ public class BrowserActivity extends Activity {
return;
}
- BrowserSettings settings = BrowserSettings.getInstance();
-
- // render the browser in OpenGL
- if (settings.isHardwareAccelerated()) {
- // Set the flag in the activity's window
- this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED,
- WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED);
- } else {
- // Clear the flag in the activity's window
- this.getWindow().setFlags(0, WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED);
- }
-
- AccessibilityManager accessibilityManager = (AccessibilityManager)
- getSystemService(ACCESSIBILITY_SERVICE);
- if (accessibilityManager != null && accessibilityManager.isEnabled()) {
- setDefaultKeyMode(DEFAULT_KEYS_DISABLE);
- }
-
mController = new Controller(this, icicle == null);
boolean xlarge = isTablet(this);
if (xlarge) {