pull/51/head
kunfei 5 years ago
parent 8aedc5b54d
commit ddb11f5343
  1. 5
      app/src/main/java/io/legado/app/ui/main/MainActivity.kt

@ -3,7 +3,6 @@ package io.legado.app.ui.main
import android.os.Bundle
import android.view.KeyEvent
import android.view.MenuItem
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentStatePagerAdapter
@ -166,10 +165,6 @@ class MainActivity : VMBaseActivity<MainViewModel>(R.layout.activity_main),
return if (showRss()) 4 else 3
}
override fun destroyItem(container: ViewGroup, position: Int, `object`: Any) {
super.destroyItem(container, position, `object`)
container.removeView(fragmentList[position].view)
}
}
}

Loading…
Cancel
Save