From 7a14d0bddea652ddca855af0c413e47a6c1360b2 Mon Sep 17 00:00:00 2001 From: Adam Cohen Date: Fri, 24 Jun 2011 11:36:35 -0700 Subject: [PATCH] Tweaking input flags for Folder renaming -> Supress suggestions and capitalize words Change-Id: I890366a5fa9c93aa3f4a18f9ff330db333d56192 --- src/com/android/launcher2/Folder.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/com/android/launcher2/Folder.java b/src/com/android/launcher2/Folder.java index 1324a08edf..60c7ed4994 100644 --- a/src/com/android/launcher2/Folder.java +++ b/src/com/android/launcher2/Folder.java @@ -26,6 +26,7 @@ import android.content.Context; import android.content.res.Resources; import android.graphics.Rect; import android.graphics.drawable.Drawable; +import android.text.InputType; import android.util.AttributeSet; import android.view.ActionMode; import android.view.KeyEvent; @@ -149,6 +150,8 @@ public class Folder extends LinearLayout implements DragSource, OnItemLongClickL mFolderName.setCursorVisible(false); mFolderName.setOnEditorActionListener(this); mFolderName.setSelectAllOnFocus(true); + mFolderName.setInputType(mFolderName.getInputType() | + InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS | InputType.TYPE_TEXT_FLAG_CAP_WORDS); } private ActionMode.Callback mActionModeCallback = new ActionMode.Callback() {