bug fix: sometimes a spinner is shown on VoiceIME startup

bug: http://b/issue?id=2434331
Change-Id: Ia65d7d92fe4ce212be0323a3b00eb63044d3191b
main
Valentin Kravtsov 2010-02-10 16:30:15 +00:00
parent 960ea65f3f
commit 0e7cdae045
1 changed files with 3 additions and 3 deletions

View File

@ -16,6 +16,8 @@
package com.android.inputmethod.voice;
import com.android.inputmethod.latin.R;
import android.content.ContentResolver;
import android.content.Context;
import android.content.res.Resources;
@ -35,9 +37,6 @@ import android.view.ViewGroup.MarginLayoutParams;
import android.widget.ImageView;
import android.widget.TextView;
import com.android.inputmethod.latin.R;
import com.android.inputmethod.voice.SettingsUtil;
import java.io.ByteArrayOutputStream;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
@ -149,6 +148,7 @@ public class RecognitionView {
public void showInitializing() {
mUiHandler.post(new Runnable() {
public void run() {
mProgress.setVisibility(View.GONE); // make sure we show no spinner on startup
mText.setText(R.string.voice_initializing);
mImage.setImageDrawable(mInitializing);
mButtonText.setText(mContext.getText(R.string.cancel));