diff options
author | Leon Scroggins <scroggo@google.com> | 2009-12-10 16:11:39 -0500 |
---|---|---|
committer | Leon Scroggins <scroggo@google.com> | 2009-12-10 16:11:39 -0500 |
commit | d530494de9c182af4aff97ddd46343b32594da51 (patch) | |
tree | f394f648073ce496d4e7be6bb15e36a1d534c03a /src/com/android/browser/BrowserPreferencesPage.java | |
parent | 4e67a2a46507299a1aa8f2b94c33c3f65e5f78e2 (diff) | |
download | packages_apps_Browser-d530494de9c182af4aff97ddd46343b32594da51.zip packages_apps_Browser-d530494de9c182af4aff97ddd46343b32594da51.tar.gz packages_apps_Browser-d530494de9c182af4aff97ddd46343b32594da51.tar.bz2 |
Provide a button to allow the user to set the home page to the current page.
Fixes http://b/issue?id=2243560
Diffstat (limited to 'src/com/android/browser/BrowserPreferencesPage.java')
-rw-r--r-- | src/com/android/browser/BrowserPreferencesPage.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/browser/BrowserPreferencesPage.java b/src/com/android/browser/BrowserPreferencesPage.java index 1370722..b636f98 100644 --- a/src/com/android/browser/BrowserPreferencesPage.java +++ b/src/com/android/browser/BrowserPreferencesPage.java @@ -39,6 +39,7 @@ public class BrowserPreferencesPage extends PreferenceActivity implements Preference.OnPreferenceChangeListener { private String LOGTAG = "BrowserPreferencesPage"; + /* package */ static final String CURRENT_PAGE = "currentPage"; @Override protected void onCreate(Bundle savedInstanceState) { @@ -51,6 +52,8 @@ public class BrowserPreferencesPage extends PreferenceActivity e.setOnPreferenceChangeListener(this); e.setSummary(getPreferenceScreen().getSharedPreferences() .getString(BrowserSettings.PREF_HOMEPAGE, null)); + ((BrowserHomepagePreference) e).setCurrentPage( + getIntent().getStringExtra(CURRENT_PAGE)); e = findPreference(BrowserSettings.PREF_EXTRAS_RESET_DEFAULTS); e.setOnPreferenceChangeListener(this); |