Show conversation title in GalleryActivity

This commit is contained in:
Moez Bhatti
2018-02-13 20:45:45 -05:00
parent 943d6bab5f
commit 7255767a9e
4 changed files with 19 additions and 4 deletions
@@ -35,13 +35,14 @@ class GalleryActivity : QkActivity<GalleryViewModel>(), GalleryView {
super.onCreate(savedInstanceState)
setContentView(R.layout.gallery_activity)
supportActionBar?.setDisplayHomeAsUpEnabled(true)
title = ""
viewModel.bindView(this)
}
override fun render(state: GalleryState) {
toolbar.setVisible(state.navigationVisible)
title = state.title
if (image.drawable == null) {
GlideApp.with(this).load(state.imagePath).into(image)
}