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/ComboViewActivity.java b/src/com/android/browser/ComboViewActivity.java
index 4026bdd..5ce20fc 100644
--- a/src/com/android/browser/ComboViewActivity.java
+++ b/src/com/android/browser/ComboViewActivity.java
@@ -28,7 +28,6 @@
import android.view.Menu;
import android.view.MenuItem;
-import com.android.browser.R;
import com.android.browser.UI.ComboViews;
import java.util.ArrayList;
@@ -143,9 +142,7 @@
return true;
} else if (item.getItemId() == R.id.preferences_menu_id) {
String url = getIntent().getStringExtra(EXTRA_CURRENT_URL);
- Intent intent = new Intent(this, BrowserPreferencesPage.class);
- intent.putExtra(BrowserPreferencesPage.CURRENT_PAGE, url);
- startActivityForResult(intent, Controller.PREFERENCES_PAGE);
+ BrowserPreferencesPage.startPreferencesForResult(this, url, Controller.PREFERENCES_PAGE);
return true;
}
return super.onOptionsItemSelected(item);