From 1df26a368a135395b7bd61e9b109044b33b1b0be Mon Sep 17 00:00:00 2001 From: Adam Cohen Date: Fri, 12 Aug 2011 16:15:23 -0700 Subject: Fixing issue where folder names aren't being persisted Change-Id: I94b40c49f2d737ae1ac03b3fa58ade8079256a8f --- src/com/android/launcher2/Folder.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/com/android/launcher2/Folder.java b/src/com/android/launcher2/Folder.java index 15a0642e2..c490d5e6d 100644 --- a/src/com/android/launcher2/Folder.java +++ b/src/com/android/launcher2/Folder.java @@ -243,14 +243,14 @@ public class Folder extends LinearLayout implements DragSource, View.OnClickList public void doneEditingFolderName(boolean commit) { mFolderName.setHint(sHintText); + // Convert to a string here to ensure that no other state associated with the text field + // gets saved. + mInfo.setTitle(mFolderName.getText().toString()); 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) { -- cgit v1.2.3