Skip to content
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(#165): fix flashlight status after coming back from camera app #189

Conversation

fedestyla
Copy link
Contributor

Fix issue #165

  • Add onCameraUnavailable listener to reset flashlight internal state to off

@@ -300,7 +304,7 @@ class MainActivity : SimpleActivity() {
}

private fun changeIconColor(color: Int, imageView: ImageView?) {
imageView!!.background.mutate().applyColorFilter(color)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need to call mutate here as applyColorFilter automatically call mutate() on the same drawable

@tibbi tibbi merged commit dd78bfe into SimpleMobileTools:master Mar 25, 2023
@tibbi
Copy link
Contributor

tibbi commented Mar 25, 2023

should be good, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants