From 0e7cdae045b93e0370ae575072e76b6af91b6b0c Mon Sep 17 00:00:00 2001 From: Valentin Kravtsov Date: Wed, 10 Feb 2010 16:30:15 +0000 Subject: [PATCH] bug fix: sometimes a spinner is shown on VoiceIME startup bug: http://b/issue?id=2434331 Change-Id: Ia65d7d92fe4ce212be0323a3b00eb63044d3191b --- src/com/android/inputmethod/voice/RecognitionView.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/com/android/inputmethod/voice/RecognitionView.java b/src/com/android/inputmethod/voice/RecognitionView.java index fd3d6d0de..18310e91b 100644 --- a/src/com/android/inputmethod/voice/RecognitionView.java +++ b/src/com/android/inputmethod/voice/RecognitionView.java @@ -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));