summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/CombinedBookmarkHistoryActivity.java
diff options
context:
space:
mode:
authorLeon Scroggins <scroggo@google.com>2009-08-07 12:03:34 -0400
committerLeon Scroggins <scroggo@google.com>2009-08-07 16:19:06 -0400
commit64b80f3efd95d7b5192731e995ccde79c4c6c11f (patch)
treebaf0b8d25359d7bbcd8db6548e02ccb9bfaa9827 /src/com/android/browser/CombinedBookmarkHistoryActivity.java
parent5b4b8f1d53b2b71ad65d51eec377119d94611662 (diff)
downloadpackages_apps_Browser-64b80f3efd95d7b5192731e995ccde79c4c6c11f.tar.gz
packages_apps_Browser-64b80f3efd95d7b5192731e995ccde79c4c6c11f.tar.bz2
packages_apps_Browser-64b80f3efd95d7b5192731e995ccde79c4c6c11f.zip
No load home page.
Rather than load a home page, bring up the browser/new tabs displaying the bookmarks page, with a search bar that can be clicked to open the omnibox. Also rearrange the menu. Fix for http://b/issue?id=2018524
Diffstat (limited to 'src/com/android/browser/CombinedBookmarkHistoryActivity.java')
-rw-r--r--src/com/android/browser/CombinedBookmarkHistoryActivity.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/com/android/browser/CombinedBookmarkHistoryActivity.java b/src/com/android/browser/CombinedBookmarkHistoryActivity.java
index 7162c88c3..e5af46c9c 100644
--- a/src/com/android/browser/CombinedBookmarkHistoryActivity.java
+++ b/src/com/android/browser/CombinedBookmarkHistoryActivity.java
@@ -80,6 +80,18 @@ public class CombinedBookmarkHistoryActivity extends TabActivity
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);
setContentView(R.layout.tabs);
+
+ TextView searchBar = (TextView) findViewById(R.id.search);
+ searchBar.setText(getIntent().getStringExtra("url"));
+ searchBar.setOnClickListener(new View.OnClickListener() {
+ public void onClick(View v) {
+ Intent openSearchIntent = new Intent();
+ openSearchIntent.putExtra("open_search", true);
+ setResult(RESULT_OK, openSearchIntent);
+ finish();
+ }
+ });
+
getTabHost().setOnTabChangedListener(this);
Bundle extras = getIntent().getExtras();