You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched searched open and closed issues for duplicates
I am submitting a bug report for existing functionality that does not work as intended
This isn't a feature request or a discussion topic
Bug description
Example usage:
Go to creating a call link.
Click on the Toggle Button.
this should recompose only the toggle row as the state of the whole row changes.
But, clicking on the the toggle button will also recompose the 3 rows below, as they include the Icons, which are recomposed because of the painterResource composable function.
As we are still slowly moving toward jetpack compose and not a large part of the codebase is migrated, I believe it is good time to use ImageVector instead of relying on painterResourceif not required.
I am happy to take this little migration forward and would love to contribute in more impactful changes in future.
Nice find. For small things like this we don't need a full issue / follow-up, you can just go ahead and submit a PR with some conversions. Better to do this kind of thing in bite sized chunks rather than all in one large change-set as well. We'll begin using ImageVector.vectorResource where applicable in the future as well.
I will create a new TabRow with ImageVector(icon param name(no default value/ mandatory param)) so that it won't conflict with the existing TabRow with the icon param name and default Painter values as null.
Guidelines
Bug description
Example usage:
painterResource
composable function.As we are still slowly moving toward jetpack compose and not a large part of the codebase is migrated, I believe it is good time to use ImageVector instead of relying on
painterResource
if not required.I am happy to take this little migration forward and would love to contribute in more impactful changes in future.
Screenshots
Using
painterResource
:Signal.CreateCallLinkBottomSheetDialogFragment.kt.Signal.Signal-Android.main.2025-01-08.12-08-47.mp4
Using
vectorResource
:Signal.CreateCallLinkBottomSheetDialogFragment.kt.Signal.Signal-Android.main.2025-01-08.12-11-33.mp4
Device
Realme GT NEO 3T
Android version
14
Signal version
7.29.0
Link to debug log
NA
The text was updated successfully, but these errors were encountered: