diff options
author | John Reck <jreck@google.com> | 2011-01-05 12:59:02 -0800 |
---|---|---|
committer | John Reck <jreck@google.com> | 2011-01-05 12:59:02 -0800 |
commit | 2a40b073738893310a4d1a3c78ecdea8154ab5d2 (patch) | |
tree | db02472aab56d58a25eb644de9034d2c83687da3 /src/com | |
parent | d80558989d8252ce859888858d4dd7907a9fc647 (diff) | |
download | packages_apps_browser-2a40b073738893310a4d1a3c78ecdea8154ab5d2.zip packages_apps_browser-2a40b073738893310a4d1a3c78ecdea8154ab5d2.tar.gz packages_apps_browser-2a40b073738893310a4d1a3c78ecdea8154ab5d2.tar.bz2 |
Home page preference URL input now selects all
Bug: 3312287
This changes it so that when the home page preference dialog pops up
rather than the cursor being at the beggining of the URL all the
text is selected. This matches the behavior of the URL input in the
browser.
Change-Id: I71658f51bc7a8da1fa770d0beb9de281aefe9efa
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/android/browser/BrowserHomepagePreference.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/com/android/browser/BrowserHomepagePreference.java b/src/com/android/browser/BrowserHomepagePreference.java index 80f7ec2..1e2697b 100644 --- a/src/com/android/browser/BrowserHomepagePreference.java +++ b/src/com/android/browser/BrowserHomepagePreference.java @@ -16,9 +16,7 @@ package com.android.browser; -import android.app.AlertDialog; import android.content.Context; -import android.content.DialogInterface; import android.os.Bundle; import android.preference.EditTextPreference; import android.util.AttributeSet; @@ -50,6 +48,7 @@ public class BrowserHomepagePreference extends EditTextPreference { protected void onAddEditTextToDialogView(View dialogView, EditText editText) { super.onAddEditTextToDialogView(dialogView, editText); + editText.setSelectAllOnFocus(true); // Now the EditText has a parent. Add a button to set to the current // page. createButtons((ViewGroup) editText.getParent()); |