summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDanesh M <daneshm90@gmail.com>2012-06-17 15:55:12 -0400
committerDanesh M <daneshm90@gmail.com>2012-06-17 15:57:02 -0400
commitd410c53b3eaef7a5334a3f462b08afc18a9042c8 (patch)
tree5d5dbc0a8daaefbd0e41d120934465da2fd5d052
parent7bc76bbabe84ce4a4c9d43c315310398c1b02e95 (diff)
downloadandroid_packages_apps_Trebuchet-d410c53b3eaef7a5334a3f462b08afc18a9042c8.zip
android_packages_apps_Trebuchet-d410c53b3eaef7a5334a3f462b08afc18a9042c8.tar.gz
android_packages_apps_Trebuchet-d410c53b3eaef7a5334a3f462b08afc18a9042c8.tar.bz2
Folder : Show folder name in exanded view w/ hide icon labels set
Show the folder name in the expanded folder view, when hide icon labels is set to allow user to edit the folder name. Patchset 2 : Fix indenting Change-Id: Ifd5df5a1cf29ce0de2562b494ccfccfa38fb2ac3
-rw-r--r--src/com/cyanogenmod/trebuchet/Folder.java9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/com/cyanogenmod/trebuchet/Folder.java b/src/com/cyanogenmod/trebuchet/Folder.java
index 57fcfcb..ec8eb79 100644
--- a/src/com/cyanogenmod/trebuchet/Folder.java
+++ b/src/com/cyanogenmod/trebuchet/Folder.java
@@ -173,11 +173,6 @@ public class Folder extends LinearLayout implements DragSource, View.OnClickList
mFolderName.setSelectAllOnFocus(true);
mFolderName.setInputType(mFolderName.getInputType() |
InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS | InputType.TYPE_TEXT_FLAG_CAP_WORDS);
-
- if (PreferencesProvider.Interface.Homescreen.getHideIconLabels(mLauncher)){
- mFolderName.setVisibility(View.GONE);
- mFolderNameHeight = getPaddingBottom();
- }
}
private ActionMode.Callback mActionModeCallback = new ActionMode.Callback() {
@@ -256,9 +251,7 @@ public class Folder extends LinearLayout implements DragSource, View.OnClickList
// Convert to a string here to ensure that no other state associated with the text field
// gets saved.
String newTitle = mFolderName.getText().toString();
- if (!PreferencesProvider.Interface.Homescreen.getHideIconLabels(mLauncher)) {
- mInfo.setTitle(newTitle);
- }
+ mInfo.setTitle(newTitle);
LauncherModel.updateItemInDatabase(mLauncher, mInfo);
if (commit) {