|
|
|
@ -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) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|