|
19 | 19 | import android.widget.ImageView;
|
20 | 20 | import android.widget.TextView;
|
21 | 21 |
|
| 22 | +import androidx.core.app.ActivityCompat; |
| 23 | + |
22 | 24 | import com.mozilla.speechlibrary.ISpeechRecognitionListener;
|
23 | 25 | import com.mozilla.speechlibrary.MozillaSpeechService;
|
24 | 26 | import com.mozilla.speechlibrary.STTResult;
|
|
28 | 30 | import org.mozilla.vrbrowser.audio.AudioEngine;
|
29 | 31 | import org.mozilla.vrbrowser.browser.SettingsStore;
|
30 | 32 | import org.mozilla.vrbrowser.browser.engine.SessionStore;
|
31 |
| -import org.mozilla.vrbrowser.utils.DeviceType; |
32 | 33 | import org.mozilla.vrbrowser.ui.views.UIButton;
|
33 | 34 | import org.mozilla.vrbrowser.ui.widgets.WidgetManagerDelegate;
|
34 | 35 | import org.mozilla.vrbrowser.ui.widgets.WidgetPlacement;
|
35 | 36 | import org.mozilla.vrbrowser.utils.LocaleUtils;
|
36 | 37 |
|
37 |
| -import androidx.core.app.ActivityCompat; |
38 |
| - |
39 | 38 | public class VoiceSearchWidget extends UIDialog implements WidgetManagerDelegate.PermissionListener,
|
40 | 39 | Application.ActivityLifecycleCallbacks {
|
41 | 40 |
|
@@ -326,9 +325,7 @@ private void setDecodingState() {
|
326 | 325 | mVoiceSearchText2.setVisibility(View.GONE);
|
327 | 326 | mVoiceSearchText3.setVisibility(View.INVISIBLE);
|
328 | 327 | mVoiceSearchInput.setVisibility(View.INVISIBLE);
|
329 |
| - if (DeviceType.getType() != DeviceType.OculusQuest) { |
330 |
| - mVoiceSearchSearching.startAnimation(mSearchingAnimation); |
331 |
| - } |
| 328 | + mVoiceSearchSearching.startAnimation(mSearchingAnimation); |
332 | 329 | mVoiceSearchSearching.setVisibility(View.VISIBLE);
|
333 | 330 | }
|
334 | 331 |
|
|
0 commit comments