mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-04-23 03:12:15 +00:00
Update: Change Toolbar title based on app
This commit is contained in:
parent
4143c3330f
commit
5530f8e0a5
@ -105,7 +105,7 @@ class ProductFragment() : ScreenFragment(), ProductAdapter.Callbacks {
|
|||||||
|
|
||||||
val toolbar = view.findViewById<Toolbar>(R.id.toolbar)!!
|
val toolbar = view.findViewById<Toolbar>(R.id.toolbar)!!
|
||||||
screenActivity.onToolbarCreated(toolbar)
|
screenActivity.onToolbarCreated(toolbar)
|
||||||
toolbar.setTitle(R.string.application)
|
toolbar.title = getString(R.string.application)
|
||||||
this.toolbar = toolbar
|
this.toolbar = toolbar
|
||||||
|
|
||||||
toolbar.menu.apply {
|
toolbar.menu.apply {
|
||||||
@ -187,6 +187,7 @@ class ProductFragment() : ScreenFragment(), ProductAdapter.Callbacks {
|
|||||||
layoutManagerState = null
|
layoutManagerState = null
|
||||||
if (firstChanged || productChanged) {
|
if (firstChanged || productChanged) {
|
||||||
this.products = products
|
this.products = products
|
||||||
|
toolbar.title = products[0].first.name
|
||||||
}
|
}
|
||||||
if (firstChanged || installedItemChanged) {
|
if (firstChanged || installedItemChanged) {
|
||||||
installed = installedItem.value?.let {
|
installed = installedItem.value?.let {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user