diff options
author | Adam Cohen <adamcohen@google.com> | 2011-08-02 14:45:34 -0700 |
---|---|---|
committer | Adam Cohen <adamcohen@google.com> | 2011-08-02 14:47:04 -0700 |
commit | eb5362e9326f6f2096cbd79adfb75f46c82bf4f0 (patch) | |
tree | bed67cf2a587b45ad3d6e1acd7c8013a0a319ce9 /src | |
parent | 1c4cf4a11f3f7f24bbf65f958fdd22295d0bbd55 (diff) | |
download | packages_apps_trebuchet-eb5362e9326f6f2096cbd79adfb75f46c82bf4f0.zip packages_apps_trebuchet-eb5362e9326f6f2096cbd79adfb75f46c82bf4f0.tar.gz packages_apps_trebuchet-eb5362e9326f6f2096cbd79adfb75f46c82bf4f0.tar.bz2 |
Fix 5033850 (again), slight variant this time
Change-Id: I9b9fe1bb114a66c99a4819607a482d1b776a6269
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/launcher2/Folder.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/launcher2/Folder.java b/src/com/android/launcher2/Folder.java index 45730e0..641e0f7 100644 --- a/src/com/android/launcher2/Folder.java +++ b/src/com/android/launcher2/Folder.java @@ -243,12 +243,14 @@ public class Folder extends LinearLayout implements DragSource, View.OnClickList public void doneEditingFolderName(boolean commit) { mFolderName.setHint(sHintText); - mInfo.setTitle(mFolderName.getText()); LauncherModel.updateItemInDatabase(mLauncher, mInfo); mFolderName.setCursorVisible(false); mFolderName.clearFocus(); Selection.setSelection((Spannable) mFolderName.getText(), 0, 0); mIsEditingName = false; + // Convert to a string here to ensure that no other state associated with the text field + // gets saved. + mInfo.setTitle(mFolderName.getText().toString()); } public boolean onEditorAction(TextView v, int actionId, KeyEvent event) { |