Advertisement
basilkot

Untitled

Nov 19th, 2018
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Kotlin 0.36 KB | None | 0 0
  1. private fun viewImage() {
  2.     if (!viewModel.image.isNullOrBlank()) {
  3.         val fragment = ImageViewDialog()
  4.         fragment.imagePath = viewModel.image!!
  5.         val transaction = supportFragmentManager.beginTransaction()
  6.         transaction.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN)
  7.         transaction.add(android.R.id.content, fragment).addToBackStack(null).commit()
  8.     }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement