leanback: add TYPE_TEXT_FLAG_NO_SUGGESTION for GuidedAction

For edit text, we have to explicitly disable the suggestion
or we might see a underline, discovered this on latest oc-dev
build. I didn't discover this before O. I haven't figured out
when the auto suggestion is activated.

Test: set the flag and rerun SupportLeanbackDemos.
Bug: 38355872

Change-Id: I5ecb6befcd9bee8614e67016c8cbccfaedfac826
diff --git a/v17/leanback/src/android/support/v17/leanback/widget/GuidedAction.java b/v17/leanback/src/android/support/v17/leanback/widget/GuidedAction.java
index 632c287..8898d48 100644
--- a/v17/leanback/src/android/support/v17/leanback/widget/GuidedAction.java
+++ b/v17/leanback/src/android/support/v17/leanback/widget/GuidedAction.java
@@ -123,8 +123,10 @@
         private int mActionFlags;
 
         private int mEditable = EDITING_NONE;
-        private int mInputType = InputType.TYPE_CLASS_TEXT;
-        private int mDescriptionInputType = InputType.TYPE_CLASS_TEXT;
+        private int mInputType = InputType.TYPE_CLASS_TEXT
+                | InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS;
+        private int mDescriptionInputType = InputType.TYPE_CLASS_TEXT
+                | InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS;
         private int mEditInputType = InputType.TYPE_CLASS_TEXT;
         private int mDescriptionEditInputType = InputType.TYPE_CLASS_TEXT;
         private int mCheckSetId = NO_CHECK_SET;
diff --git a/v17/leanback/src/android/support/v17/leanback/widget/GuidedActionsStylist.java b/v17/leanback/src/android/support/v17/leanback/widget/GuidedActionsStylist.java
index 62d22a3..15e6109 100644
--- a/v17/leanback/src/android/support/v17/leanback/widget/GuidedActionsStylist.java
+++ b/v17/leanback/src/android/support/v17/leanback/widget/GuidedActionsStylist.java
@@ -676,6 +676,7 @@
     public void onBindViewHolder(ViewHolder vh, GuidedAction action) {
         vh.mAction = action;
         if (vh.mTitleView != null) {
+            vh.mTitleView.setInputType(action.getInputType());
             vh.mTitleView.setText(action.getTitle());
             vh.mTitleView.setAlpha(action.isEnabled() ? mEnabledTextAlpha : mDisabledTextAlpha);
             vh.mTitleView.setFocusable(false);
@@ -683,6 +684,7 @@
             vh.mTitleView.setLongClickable(false);
         }
         if (vh.mDescriptionView != null) {
+            vh.mDescriptionView.setInputType(action.getDescriptionInputType());
             vh.mDescriptionView.setText(action.getDescription());
             vh.mDescriptionView.setVisibility(TextUtils.isEmpty(action.getDescription())
                     ? View.GONE : View.VISIBLE);