Closed HunterPillu closed 2 years ago
tried to switching off the flash programmatically on Fragment's onPause() and onStop() lifecycle methods.
Issue : isFlashEnabled set to false but flash remains ON
@Override public void onStop(){ mCodeScanner.setFlashEnabled(false); super.onStop(); }
@Override public void onStop(){ mCodeScanner.setFlashEnabled(false); mCodeScanner.releaseResources(); super.onStop(); }
it solves the issue.
tried to switching off the flash programmatically on Fragment's onPause() and onStop() lifecycle methods.
Issue : isFlashEnabled set to false but flash remains ON
@Override public void onStop(){ mCodeScanner.setFlashEnabled(false); super.onStop(); }