-
Notifications
You must be signed in to change notification settings - Fork 1.3k
For #26329 Refactor the search widget to use the A-C common behaviour #26331
Conversation
75cc0b6
to
6978990
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Though nothing stands out I saw a case in which the widget would not show the app icon, don't know if it's a new issue / device issue, to be assessed by QA.
|
||
/** | ||
* Launches voice recognition then uses it to start a new web search. | ||
* Implementation of voice search that is needed in search widget |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: The previous documentation is probably better since it has a wider reach and there are other ways to use voice search than just from the widget - eg: the url bar also has a microphone button which starts this functionality.
return Intent(context, IntentReceiverActivity::class.java) | ||
.let { intent -> | ||
val createTextSearchIntentFlags = IntentUtils.defaultIntentPendingFlags or | ||
PendingIntent.FLAG_UPDATE_CURRENT | ||
intent.flags = Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TASK | ||
intent.putExtra(HomeActivity.OPEN_TO_SEARCH, StartSearchIntentProcessor.SEARCH_WIDGET) | ||
intent.putExtra( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: unneeded reformatting.
The issue reproduces on main also for any update of |
I can reproduce the issue with disappearing icons on Pixel 3XL . |
This then seems like a framework / launcher issue. |
We could send a one-time |
Not sure when and where from if the issue reproduces immediately after updating the app but without the app having a chance to open. ? |
For me, the bug reproduced only after opening the updated app. |
5494021
to
1fa66d4
Compare
For the bug with icons disappearing at update I made a fix (an APPWIDGET_UPDATE in FenixApplication only one time ) , but sometimes I saw that the icons have disappeared random . |
…mmon behaviour
@iorgamgabriel I would not land this in Fenix if we are unsure of what is causing the widget to be removed. For now, the original intention was to share the component in Focus, so we don't need to block that work on this PR. What do you think? |
@jonalmeida It's ok . Thank you for the answer. |
It should behave like the current version .
Pull Request checklist
QA
To download an APK when reviewing a PR (after all CI tasks finished running):
Checks
at the top of the PR page.firefoxci-taskcluster
group on the left to expand all tasks.build-debug
task.View task in Taskcluster
in the newDETAILS
section.GitHub Automation
Fixes #26329