-
-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add isManualUpdate flag to updateWidget #315
base: main
Are you sure you want to change the base?
Conversation
To view this pull requests documentation preview, visit the following URL: docs.page/abausg/home_widget~315 Documentation is deployed and generated using docs.page. |
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.
Just some minor notes.
@@ -109,6 +109,7 @@ class HomeWidgetPlugin : | |||
AppWidgetManager.getInstance(context.applicationContext) | |||
.getAppWidgetIds(ComponentName(context, javaClass)) | |||
intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_IDS, ids) | |||
intent.putExtra("isManualUpdate", true) |
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.
I think manual
is not really great wording here as it is not directly explaining everything
I would propose something like:
triggeredFromHomeWidget
Also it should use some constant defined on a HomeWidget
scope so it can be reused also from a user's side without requiring a magic string
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.
Good idea. Fixed.
Fixes #314
Adds extra parameter so we can distinguish AppWidgetManager.EXTRA_APPWIDGET_IDS from system vs manual.
Checklist
example
or documentation.Breaking Change?