mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
show top navigation back arrow as previously
This commit is contained in:
@@ -932,6 +932,7 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener {
|
|||||||
|
|
||||||
fragment.arguments = bundle
|
fragment.arguments = bundle
|
||||||
supportFragmentManager.beginTransaction().add(R.id.fragments_holder, fragment).commitNow()
|
supportFragmentManager.beginTransaction().add(R.id.fragments_holder, fragment).commitNow()
|
||||||
|
main_toolbar.navigationIcon = null
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun fixDayCode(dayCode: String? = null): String? = when {
|
private fun fixDayCode(dayCode: String? = null): String? = when {
|
||||||
@@ -991,6 +992,7 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener {
|
|||||||
supportFragmentManager.beginTransaction().add(R.id.fragments_holder, fragment).commitNow()
|
supportFragmentManager.beginTransaction().add(R.id.fragments_holder, fragment).commitNow()
|
||||||
resetActionBarTitle()
|
resetActionBarTitle()
|
||||||
calendar_fab.beVisible()
|
calendar_fab.beVisible()
|
||||||
|
showBackNavigationArrow()
|
||||||
}
|
}
|
||||||
|
|
||||||
fun openDayFromMonthly(dateTime: DateTime) {
|
fun openDayFromMonthly(dateTime: DateTime) {
|
||||||
@@ -1005,6 +1007,7 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener {
|
|||||||
fragment.arguments = bundle
|
fragment.arguments = bundle
|
||||||
try {
|
try {
|
||||||
supportFragmentManager.beginTransaction().add(R.id.fragments_holder, fragment).commitNow()
|
supportFragmentManager.beginTransaction().add(R.id.fragments_holder, fragment).commitNow()
|
||||||
|
showBackNavigationArrow()
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1027,6 +1030,15 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener {
|
|||||||
updateActionBarTitle()
|
updateActionBarTitle()
|
||||||
}
|
}
|
||||||
calendar_fab.beGoneIf(currentFragments.size == 1 && config.storedView == YEARLY_VIEW)
|
calendar_fab.beGoneIf(currentFragments.size == 1 && config.storedView == YEARLY_VIEW)
|
||||||
|
if (currentFragments.size > 1) {
|
||||||
|
showBackNavigationArrow()
|
||||||
|
} else {
|
||||||
|
main_toolbar.navigationIcon = null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private fun showBackNavigationArrow() {
|
||||||
|
main_toolbar.navigationIcon = resources.getColoredDrawableWithColor(R.drawable.ic_arrow_left_vector, getProperStatusBarColor().getContrastColor())
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun refreshViewPager() {
|
private fun refreshViewPager() {
|
||||||
|
Reference in New Issue
Block a user