Clean visual style, part II: extend bright style, convert icons, more touch-ups.
This commit removes the remaining white icons from the previous style,
which was a mix of 'holo dark' (i.e. light) icons and other un-fitting
icons. It's all replaced with theme-colored icons.
The primary color itself had been altered a bit towards green (#18aba1).
Other than the icon replacements, this commit changes:
- tab switcher: fix cosmetic bug in the title bar in <= xhdpi devices
- tab switcher: better incognito presentation
- settings: enable back (<-) arrow
- settings: bold color in the activity (on L and up)
- settings: rationalized launching
- better spacings on the mobile title bar
- better padding on history items
- add proportional padding (1em) to the incognito page
- the incognito tab bar gets a bit darker
- ['Ingnito Page', 'New Incognito Tab'] -> 'Private Browsing'
- 'Page info' -> 'Page information' (no abbrevs when user facing :)
Vast amount of unused resources are removed from the APK.
Change-Id: I4add15fc686495ce27f63e26c2c56c14fa3d6603
diff --git a/src/com/android/browser/Controller.java b/src/com/android/browser/Controller.java
index 77f4032..62dff92 100644
--- a/src/com/android/browser/Controller.java
+++ b/src/com/android/browser/Controller.java
@@ -2236,10 +2236,7 @@
@Override
public void openPreferences() {
- Intent intent = new Intent(mActivity, BrowserPreferencesPage.class);
- intent.putExtra(BrowserPreferencesPage.CURRENT_PAGE,
- getCurrentTopWebView().getUrl());
- mActivity.startActivityForResult(intent, PREFERENCES_PAGE);
+ BrowserPreferencesPage.startPreferencesForResult(mActivity, getCurrentTopWebView().getUrl(), PREFERENCES_PAGE);
}
@Override
@@ -3373,11 +3370,9 @@
// Open the settings activity at the AutoFill profile fragment so that
// the user can create a new profile. When they return, we will dispatch
// the message so that we can autofill the form using their new profile.
- Intent intent = new Intent(mActivity, BrowserPreferencesPage.class);
- intent.putExtra(PreferenceActivity.EXTRA_SHOW_FRAGMENT,
- AutoFillSettingsFragment.class.getName());
mAutoFillSetupMessage = message;
- mActivity.startActivityForResult(intent, AUTOFILL_SETUP);
+ BrowserPreferencesPage.startPreferenceFragmentForResult(mActivity,
+ AutoFillSettingsFragment.class.getName(), AUTOFILL_SETUP);
}
@Override