-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Fix Crash DashboardWidgetService #12234
Fix Crash DashboardWidgetService #12234
Conversation
alperozturk96
commented
Dec 5, 2023
•
edited
Loading
edited
- Tests written, or not not needed
@@ -166,55 +166,17 @@ class StackRemoteViewsFactory( | |||
@Suppress("NestedBlockDepth", "TooGenericExceptionCaught") | |||
private fun createItemView(position: Int): RemoteViews { | |||
return RemoteViews(context.packageName, R.layout.widget_item).apply { | |||
if (widgetItems.isEmpty()) { |
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.
actual fix
if (widgetItem.iconUrl.isNotEmpty()) { | ||
val glide: FutureTarget<Bitmap> |
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.
Extracted to separate functions for increase code readability
/rebase |
Signed-off-by: alperozturk <[email protected]>
Signed-off-by: alperozturk <[email protected]>
88b4154
to
982bda6
Compare
Signed-off-by: alperozturk <[email protected]>
APK file: https://www.kaminsky.me/nc-dev/android-artifacts/12234.apk |
/backport to stable-3.27 |
1 similar comment
/backport to stable-3.27 |
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.
Not tested but code looks good!