set the flash icon to Off at hiding to avoid glitches at reshowing

This commit is contained in:
tibbi 2018-06-05 21:25:23 +02:00
parent 6a1cc57c00
commit 3f23f017d2
1 changed files with 1 additions and 0 deletions

View File

@ -517,6 +517,7 @@ class MainActivity : SimpleActivity(), PhotoProcessor.MediaSavedListener {
toggle_flash.beVisible()
} else {
toggle_flash.beInvisible()
toggle_flash.setImageResource(R.drawable.ic_flash_off)
mPreview?.setFlashlightState(FLASH_OFF)
}
}