diff options
author | Adam Cohen <adamcohen@google.com> | 2011-07-27 11:58:37 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-07-27 11:58:37 -0700 |
commit | aed8c8302a7fe2ed121a96ad1801a7da39f5af40 (patch) | |
tree | f80037ec0efc57704a80d93ed731d17c1f07beca /src/com/android | |
parent | 041b0c09c400dbbde2fb2bd0a2072ed19fb3e99d (diff) | |
parent | e601a43345224e3e386abc68bbea8b08b2df9570 (diff) | |
download | android_packages_apps_Trebuchet-aed8c8302a7fe2ed121a96ad1801a7da39f5af40.tar.gz android_packages_apps_Trebuchet-aed8c8302a7fe2ed121a96ad1801a7da39f5af40.tar.bz2 android_packages_apps_Trebuchet-aed8c8302a7fe2ed121a96ad1801a7da39f5af40.zip |
Merge "Clearing selection when done editing folder name"
Diffstat (limited to 'src/com/android')
-rw-r--r-- | src/com/android/launcher2/Folder.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/launcher2/Folder.java b/src/com/android/launcher2/Folder.java index 428d7b330..014356bb6 100644 --- a/src/com/android/launcher2/Folder.java +++ b/src/com/android/launcher2/Folder.java @@ -27,6 +27,8 @@ import android.content.res.Resources; import android.graphics.Rect; import android.graphics.drawable.Drawable; import android.text.InputType; +import android.text.Selection; +import android.text.Spannable; import android.util.AttributeSet; import android.view.ActionMode; import android.view.KeyEvent; @@ -240,6 +242,7 @@ public class Folder extends LinearLayout implements DragSource, View.OnClickList LauncherModel.updateItemInDatabase(mLauncher, mInfo); mFolderName.setCursorVisible(false); mFolderName.clearFocus(); + Selection.setSelection((Spannable) mFolderName.getText(), 0, 0); mIsEditingName = false; } |