Created
June 26, 2020 12:21
-
-
Save ktvipin27/522f54a433977a1a184a71d61c5109e7 to your computer and use it in GitHub Desktop.
CameraFragment for cameraX sample
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CameraFragment : Fragment(R.layout.fragment_camera), ControlView.Listener { | |
//... | |
override fun onResume() { | |
super.onResume() | |
if (!PermissionFragment.hasPermissions(requireContext())) | |
findNavController() | |
.navigate(CameraFragmentDirections.actionCameraFragmentToPermissionFragment()) | |
} | |
//... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment