Browse Source

Actually fix camera icon tint bug

master
Hardcore Sushi 2 months ago
parent
commit
5ea0b8ad41
Signed by: hardcoresushi
GPG Key ID: AFE384344A45E13A
  1. 2
      app/src/main/java/sushi/hardcore/droidfs/CameraActivity.kt

2
app/src/main/java/sushi/hardcore/droidfs/CameraActivity.kt

@ -221,7 +221,7 @@ class CameraActivity : BaseActivity(), SensorOrientationListener.Listener {
requestPermissions(arrayOf(Manifest.permission.RECORD_AUDIO), AUDIO_PERMISSION_REQUEST_CODE)
}
}
binding.imageModeSwitch.setImageDrawable(ContextCompat.getDrawable(this, R.drawable.icon_photo)?.also {
binding.imageModeSwitch.setImageDrawable(ContextCompat.getDrawable(this, R.drawable.icon_photo)?.mutate()?.also {
it.setTint(ContextCompat.getColor(this, R.color.neutralIconTint))
})
imageCapture?.flashMode = ImageCapture.FLASH_MODE_OFF

Loading…
Cancel
Save