Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private fun viewImage() {
- if (!viewModel.image.isNullOrBlank()) {
- val fragment = ImageViewDialog()
- fragment.imagePath = viewModel.image!!
- val transaction = supportFragmentManager.beginTransaction()
- transaction.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN)
- transaction.add(android.R.id.content, fragment).addToBackStack(null).commit()
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement