bug fix: sometimes a spinner is shown on VoiceIME startup
bug: http://b/issue?id=2434331 Change-Id: Ia65d7d92fe4ce212be0323a3b00eb63044d3191bmain
parent
960ea65f3f
commit
0e7cdae045
|
@ -16,6 +16,8 @@
|
||||||
|
|
||||||
package com.android.inputmethod.voice;
|
package com.android.inputmethod.voice;
|
||||||
|
|
||||||
|
import com.android.inputmethod.latin.R;
|
||||||
|
|
||||||
import android.content.ContentResolver;
|
import android.content.ContentResolver;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.content.res.Resources;
|
import android.content.res.Resources;
|
||||||
|
@ -35,9 +37,6 @@ import android.view.ViewGroup.MarginLayoutParams;
|
||||||
import android.widget.ImageView;
|
import android.widget.ImageView;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
|
|
||||||
import com.android.inputmethod.latin.R;
|
|
||||||
import com.android.inputmethod.voice.SettingsUtil;
|
|
||||||
|
|
||||||
import java.io.ByteArrayOutputStream;
|
import java.io.ByteArrayOutputStream;
|
||||||
import java.nio.ByteBuffer;
|
import java.nio.ByteBuffer;
|
||||||
import java.nio.ByteOrder;
|
import java.nio.ByteOrder;
|
||||||
|
@ -149,6 +148,7 @@ public class RecognitionView {
|
||||||
public void showInitializing() {
|
public void showInitializing() {
|
||||||
mUiHandler.post(new Runnable() {
|
mUiHandler.post(new Runnable() {
|
||||||
public void run() {
|
public void run() {
|
||||||
|
mProgress.setVisibility(View.GONE); // make sure we show no spinner on startup
|
||||||
mText.setText(R.string.voice_initializing);
|
mText.setText(R.string.voice_initializing);
|
||||||
mImage.setImageDrawable(mInitializing);
|
mImage.setImageDrawable(mInitializing);
|
||||||
mButtonText.setText(mContext.getText(R.string.cancel));
|
mButtonText.setText(mContext.getText(R.string.cancel));
|
||||||
|
|
Loading…
Reference in New Issue