diff --git a/app/src/main/java/pl/szczodrzynski/edziennik/ui/modules/messages/MessagesFragment.kt b/app/src/main/java/pl/szczodrzynski/edziennik/ui/modules/messages/MessagesFragment.kt index 1b1b9739..8abfbd13 100644 --- a/app/src/main/java/pl/szczodrzynski/edziennik/ui/modules/messages/MessagesFragment.kt +++ b/app/src/main/java/pl/szczodrzynski/edziennik/ui/modules/messages/MessagesFragment.kt @@ -9,7 +9,6 @@ import androidx.fragment.app.FragmentManager import androidx.fragment.app.FragmentPagerAdapter import androidx.viewpager.widget.ViewPager import com.mikepenz.iconics.typeface.library.community.material.CommunityMaterial -import org.greenrobot.eventbus.EventBus import pl.szczodrzynski.edziennik.App import pl.szczodrzynski.edziennik.MainActivity import pl.szczodrzynski.edziennik.R @@ -127,16 +126,6 @@ class MessagesFragment : Fragment() { }*/ } - override fun onStart() { - EventBus.getDefault().register(this) - super.onStart() - } - - override fun onStop() { - super.onStop() - EventBus.getDefault().unregister(this) - } - internal class Adapter(manager: FragmentManager) : FragmentPagerAdapter(manager) { private val mFragmentList = ArrayList() private val mFragmentTitleList = ArrayList()