diff options
author | Denise Cheng <dcheng@codeaurora.org> | 2012-01-06 17:16:30 -0500 |
---|---|---|
committer | Steve Kondik <shade@chemlab.org> | 2012-09-11 13:29:34 -0700 |
commit | 9aa4a1b524d567c70967565bce2636f01c298d84 (patch) | |
tree | c64db1ec1cb0249c35fcfd2f0c13409986ae1f1e /src/com/android/browser/preferences/BandwidthPreferencesFragment.java | |
parent | fdebf369b0f328538170db5c8e7704590c64c009 (diff) | |
download | packages_apps_browser-9aa4a1b524d567c70967565bce2636f01c298d84.zip packages_apps_browser-9aa4a1b524d567c70967565bce2636f01c298d84.tar.gz packages_apps_browser-9aa4a1b524d567c70967565bce2636f01c298d84.tar.bz2 |
Multimedia feature port from ICS
Support for runtime media preload configuration with 3 options:
- Never
- Only on WiFi (default)
- Always
Support video transition animation
Change-Id: Idd03f5bb57d6f78ec8b8e407eba01904f392f554
Diffstat (limited to 'src/com/android/browser/preferences/BandwidthPreferencesFragment.java')
-rw-r--r-- | src/com/android/browser/preferences/BandwidthPreferencesFragment.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/com/android/browser/preferences/BandwidthPreferencesFragment.java b/src/com/android/browser/preferences/BandwidthPreferencesFragment.java index 0cb064a..36d1689 100644 --- a/src/com/android/browser/preferences/BandwidthPreferencesFragment.java +++ b/src/com/android/browser/preferences/BandwidthPreferencesFragment.java @@ -1,5 +1,6 @@ /* * Copyright (C) 2011 The Android Open Source Project + * Copyright (c) 2012, Code Aurora Forum. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -58,6 +59,15 @@ public class BandwidthPreferencesFragment extends PreferenceFragment { prefetch.setValue(BrowserSettings.getInstance().getDefaultLinkPrefetchSetting()); } } + if (!getPreferenceScreen().getSharedPreferences() + .contains(PreferenceKeys.PREF_VIDEO_PRELOAD)) { + // set default value for preload setting + ListPreference preload = (ListPreference) getPreferenceScreen().findPreference( + PreferenceKeys.PREF_VIDEO_PRELOAD); + if (preload != null) { + preload.setValue(BrowserSettings.getInstance().getDefaultVideoPreloadSetting()); + } + } } } |