Icon must be placed near the text string on the input screen

A small icon can be displayed on the action bar of the input screen in
the current implementation, but it is better to display it near the text
string because icon can replace text string if it is self-explanatory
icon. The size of text string should also be enlarged.

Bug: 64371064
Test: Manual - Verified both with icon and without icon cases.

Change-Id: I36a3dde9cc3717bb2910c55004da214d689e4274
diff --git a/src/com/android/stk/StkInputActivity.java b/src/com/android/stk/StkInputActivity.java
index 9a066ec..3069edb 100755
--- a/src/com/android/stk/StkInputActivity.java
+++ b/src/com/android/stk/StkInputActivity.java
@@ -27,6 +27,7 @@
 import android.text.Editable;
 import android.text.InputFilter;
 import android.text.InputType;
+import android.text.TextUtils;
 import android.text.TextWatcher;
 import android.text.method.PasswordTransformationMethod;
 import android.view.KeyEvent;
@@ -373,10 +374,10 @@
         int inTypeId = R.string.alphabet;
 
         // set the prompt.
-        if (mStkInput.iconSelfExplanatory && mStkInput.icon != null) {
-            mPromptView.setVisibility(View.GONE);
-        } else {
+        if ((mStkInput.icon == null || !mStkInput.iconSelfExplanatory)
+                && !TextUtils.isEmpty(mStkInput.text)) {
             mPromptView.setText(mStkInput.text);
+            mPromptView.setVisibility(View.VISIBLE);
         }
 
         // Set input type (alphabet/digit) info close to the InText form.
@@ -390,7 +391,7 @@
         textView.setText(R.string.app_name);
 
         if (mStkInput.icon != null) {
-            ImageView imageView = (ImageView) findViewById(R.id.title_icon);
+            ImageView imageView = (ImageView) findViewById(R.id.icon);
             imageView.setImageBitmap(mStkInput.icon);
             imageView.setVisibility(View.VISIBLE);
         }