Created
April 8, 2020 22:25
-
-
Save ZieIony/7540f389ed45f9c9bb4b8cb27fe2837b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class TabsFragment : Fragment() { | |
| private val tabFragments: Array<KClass<out BaseFragment>> | |
| init { | |
| val mainNavPlugins = PluginManager.getPlugins().filter { | |
| it.getMainFragment() != null | |
| }.toTypedArray() | |
| tabFragments = arrayOf( | |
| ProxyListFragment::class.java, | |
| *mainNavPlugins.map { | |
| it.getMainFragment()!!.java | |
| }.toTypedArray(), | |
| CertificateListFragment::class.java, | |
| SettingsFragment::class.java | |
| ) | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment