summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2011-01-05 12:59:02 -0800
committerJohn Reck <jreck@google.com>2011-01-05 12:59:02 -0800
commit2a40b073738893310a4d1a3c78ecdea8154ab5d2 (patch)
treedb02472aab56d58a25eb644de9034d2c83687da3
parentd80558989d8252ce859888858d4dd7907a9fc647 (diff)
downloadpackages_apps_Browser-2a40b073738893310a4d1a3c78ecdea8154ab5d2.tar.gz
packages_apps_Browser-2a40b073738893310a4d1a3c78ecdea8154ab5d2.tar.bz2
packages_apps_Browser-2a40b073738893310a4d1a3c78ecdea8154ab5d2.zip
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
-rw-r--r--src/com/android/browser/BrowserHomepagePreference.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/com/android/browser/BrowserHomepagePreference.java b/src/com/android/browser/BrowserHomepagePreference.java
index 80f7ec251..1e2697b40 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());