[Bug]: The microphone icon is not updated on the search bar widget
Steps to reproduce
- Install Fenix and add the search widget to the device home screen.
- Open Fenix Settings > Search.
- Disable and re-enable the "Show voice search" toggle.
- Observe the widget is now missing the microphone icon.
Expected behaviour
The widget displays a microphone icon on the widget when the toggle is enabled in the app settings.
Actual behaviour
The microphone icon is not displayed until restarting the device or reinstalling the widget.
Device name
Samsung Galaxy A8
Android version
Android 9
Firefox release type
Firefox
Firefox version
92.1.0 2021-09-01
Device logs
No response
Additional information
Same behavior can be observed on Nightly 2021-09-03.
┆Issue is synchronized with this Jira Task
I can confirm the issue is reproducible with the following observations: On all 3 devices used for testing, on Beta the behavior is exactly as described, but with the latest Nightly, while the microphone icon is not displayed as described above, it reappears after a few seconds without restarting, or reinstalling the widget. (See video below). @mariansima please see if it is the same on your side with the latest Nightly.
Firefox versions tested:
- latest Nightly (94.0a1 - 2021-09-21)
- latest Beta (93.0.0beta4)
Devices used:
- Samsung Galaxy Tab S3 (Android 9).
- Huawei P30 (Android 10).
- Xiaomi Mi11 Lite (Android 11).
https://user-images.githubusercontent.com/48829350/134155655-0187663e-891c-4d01-a64f-431f08547c63.mp4
After further testing on Nightly 94.0.a1 2021-09-22, the icon does update after a few seconds when the specified browser is set as default. If another browser is set as default, the icon will no longer update after toggling the "Show voice search" button. Video attached.
.
See: https://github.com/mozilla-mobile/fenix/issues/17373 This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue is no longer reproducible with the latest Nightly build (100.0a1 - 2022-03-21). Device used: Oppo Reno 6 (Android 11). Closing the ticket as fixed.