fenix icon indicating copy to clipboard operation
fenix copied to clipboard

[Bug] Search Widget Crash

Open jyeontaek opened this issue 7 years ago • 6 comments

Steps to reproduce

  1. Phone should not have any sort of speech-to-text library installed.
  2. Place the search widget in home screen.
  3. Press the microphone icon to open the voice search.

Expected behavior

User should be notified in some way that speech-to-text search is not available.

Actual behavior

The application crashes.

Device information

  • Android device: Galaxy S9
  • Fenix version: ?

┆Issue is synchronized with this Jira Task

jyeontaek avatar Jul 30 '19 17:07 jyeontaek

@jyeontaek I wonder if we could just hide the microphone if the user doesn't have one enabled. Is that possible?

sblatz avatar Jul 30 '19 22:07 sblatz

I believe it's possible. However, if the user installs the speech-to-text library and wants the icon to reappear, the user will need to readjust the widget size or wait at least 30 minutes for the app to check if the library is installed.

jyeontaek avatar Jul 31 '19 18:07 jyeontaek

@jyeontaek That seems fine to me tbh. 30 minutes isn't that long and uninstalling and installing a voice library is probably a rare case.

sblatz avatar Aug 01 '19 20:08 sblatz

https://github.com/mozilla-mobile/fenix/issues/4589 includes a stacktrace for this crash.

sblatz avatar Aug 08 '19 21:08 sblatz

I can't see the microphone but I can't crash it either in latest nightly.

andreicristianpetcu avatar Aug 17 '19 13:08 andreicristianpetcu

Verified as fixed in Fenix 1.3.0-rc.3 with Samsung Galaxy S10+(Android 9). Please note that the microphone wasn't displayed once the text-to-speech libraries were disabled/uninstalled. No crash, everything worked as expected.

abodea avatar Aug 19 '19 14:08 abodea