summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeon Scroggins <scroggo@google.com>2010-12-15 16:03:59 -0500
committerLeon Scroggins <scroggo@google.com>2010-12-15 16:03:59 -0500
commit7453ff26de5948543979f5921eb8917284e8e5c4 (patch)
treed1b29e17e94958286dfb0daadcb59dd7e554a5f9
parent478b2442684004d6dfe192c0ae3dd04845b9f1b7 (diff)
downloadpackages_apps_Browser-7453ff26de5948543979f5921eb8917284e8e5c4.zip
packages_apps_Browser-7453ff26de5948543979f5921eb8917284e8e5c4.tar.gz
packages_apps_Browser-7453ff26de5948543979f5921eb8917284e8e5c4.tar.bz2
Request no title on addbookmark page.
Bug:3183399 Increase the height of the custom title. Change-Id: I0fd3ebd3dfc1d7e623e108a0bc3957e9c2501c4c
-rw-r--r--res/layout/browser_add_bookmark.xml2
-rw-r--r--src/com/android/browser/AddBookmarkPage.java9
2 files changed, 2 insertions, 9 deletions
diff --git a/res/layout/browser_add_bookmark.xml b/res/layout/browser_add_bookmark.xml
index c547389..8b6feab 100644
--- a/res/layout/browser_add_bookmark.xml
+++ b/res/layout/browser_add_bookmark.xml
@@ -50,7 +50,7 @@
</RelativeLayout>
<TextView android:id="@+id/fake_title"
android:layout_width="wrap_content"
- android:layout_height="wrap_content"
+ android:layout_height="?android:attr/listPreferredItemHeight"
android:drawableLeft="@drawable/ic_list_bookmark"
android:text="@string/bookmark_this_page"
android:layout_gravity="left"
diff --git a/src/com/android/browser/AddBookmarkPage.java b/src/com/android/browser/AddBookmarkPage.java
index 6e3f8bc..ecd038f 100644
--- a/src/com/android/browser/AddBookmarkPage.java
+++ b/src/com/android/browser/AddBookmarkPage.java
@@ -79,8 +79,6 @@ public class AddBookmarkPage extends Activity
private static final int MAX_CRUMBS_SHOWN = 2;
private final String LOGTAG = "Bookmarks";
- // Set to true to see the crash on the code I would like to run.
- private final boolean DEBUG_CRASH = false;
// IDs for the CursorLoaders that are used.
private final int LOADER_ID_FOLDER_CONTENTS = 0;
@@ -489,18 +487,13 @@ public class AddBookmarkPage extends Activity
@Override
protected void onCreate(Bundle icicle) {
super.onCreate(icicle);
- if (DEBUG_CRASH) {
- requestWindowFeature(Window.FEATURE_NO_TITLE);
- }
+ requestWindowFeature(Window.FEATURE_NO_TITLE);
mMap = getIntent().getExtras();
setContentView(R.layout.browser_add_bookmark);
Window window = getWindow();
- if (!DEBUG_CRASH) {
- setTitle("");
- }
String title = null;
String url = null;