Commit f03cb054 authored by Daniel Wolf's avatar Daniel Wolf
Browse files

Remove currentFragment, it has no use anymore

parent b77fa913
......@@ -37,8 +37,6 @@ abstract class NavigationDrawerActivity : BaseActivity() {
private var temporaryItemBackState:ItemBackState? = null
private var listAdapter: NavigationDrawerAdapter? = null
var nextFragment: Fragment? = null
var currentFragment: Fragment? = null
private set
private var pendingCardView:((viewParent:ViewGroup, suggestedHeight:Int) -> View)? = null
private val drawerReadyCallbacks = mutableListOf<() -> Unit>()
private var cardView:((viewParent:ViewGroup, suggestedHeight:Int) -> View)? = null
......@@ -335,7 +333,6 @@ abstract class NavigationDrawerActivity : BaseActivity() {
private fun showNextFragment() {
val imNextFragment = nextFragment
if(imNextFragment != null) {
currentFragment = imNextFragment
if (currentSelectedItem != null && currentSelectedItem is FragmentDrawerItem && (currentSelectedItem as FragmentDrawerItem).shouldInvalidateOptionsMenu)
invalidateOptionsMenu()
supportFragmentManager.beginTransaction().replace(drawerContent.id, imNextFragment).commitNowAllowingStateLoss()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment