https://kotlinlang.org logo
#android
Title
# android
m

Mohammadreza Khahani

02/29/2024, 6:06 PM
Hello brilliant developers 😀 Could someone help me by answering my simple question on Stackoverflow? 🙏
j

Jonny

02/29/2024, 7:23 PM
That works fine for me without using "invoke". No complaints about unused parameter.
m

Mohammadreza Khahani

02/29/2024, 8:38 PM
@Jonny Thanks for your response. 🙏 Could you confirm there is no such warning after doing code analysis by Android Studio because there are no compiler complaints about it but you can see the warning by doing Inspect Code.
j

Jonny

02/29/2024, 8:58 PM
When I run code analysis I get that warning as well. I have a bunch of callbacks in my composable method and two of them have the same warning. They are the only callbacks with arguments. So I believe there's an issue with code inspection when there are callbacks with arguments.
🙏 1
m

Mohammadreza Khahani

02/29/2024, 9:04 PM
You're right. It only occurs for callbacks with arguments. 💪 Do you have any idea how to satisfy the code inspection without using the
invoke
calls?
j

Jonny

02/29/2024, 9:37 PM
Nope.
m

Mohammadreza Khahani

02/29/2024, 9:38 PM
Thanks for your valuable time to help me. 🙏
j

Jonny

02/29/2024, 9:39 PM
Create an issue at google and they'll probably solve it eventually.
👍 1
No problem. 😄
m

Mohammadreza Khahani

03/01/2024, 9:57 AM
Thanks for your great idea to report the issue. 🙏 Someone came up with an answer to my question referring to an issue related to the problem on the Google issue tracker and I commented on it.