Do not trim folder title

Bug: 21297281
Change-Id: I633780f8207aabc8362f016e6b5a6e720cee1b86
This commit is contained in:
Sunny Goyal
2015-05-21 09:33:57 -07:00
parent c393b0765d
commit a508e4f804
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -92,7 +92,7 @@ public class FolderInfo extends ItemInfo {
}
public void setTitle(CharSequence title) {
this.title = Utilities.trim(title);
this.title = title;
for (int i = 0; i < listeners.size(); i++) {
listeners.get(i).onTitleChanged(title);
}
+4 -2
View File
@@ -968,7 +968,8 @@ public class LauncherModel extends BroadcastReceiver
break;
}
folderInfo.title = Utilities.trim(c.getString(titleIndex));
// Do not trim the folder label, as is was set by the user.
folderInfo.title = c.getString(titleIndex);
folderInfo.id = id;
folderInfo.container = c.getInt(containerIndex);
folderInfo.screenId = c.getInt(screenIndex);
@@ -2110,7 +2111,8 @@ public class LauncherModel extends BroadcastReceiver
id = c.getLong(idIndex);
FolderInfo folderInfo = findOrMakeFolder(sBgFolders, id);
folderInfo.title = Utilities.trim(c.getString(titleIndex));
// Do not trim the folder label, as is was set by the user.
folderInfo.title = c.getString(titleIndex);
folderInfo.id = id;
container = c.getInt(containerIndex);
folderInfo.container = container;