title: Recycler View becomes empty view when the fragment is opened again in Tabs
body: <p><strong>Fragment A:-</strong></p>
  
  <pre><code>    val pager: ViewPager = v.findViewById(R.id.viewpager)
      val tabs: TabLayout = v.findViewById(R.id.tabs)
      setupViewPager(pager)
      tabs.setupWithViewPager(pager)
  
  
  private fun setupViewPager(pager: ViewPager) {
    val adapter = activity?.supportFragmentManager?.let { Adapter(it) }
  
      adapter?.addFragment(FragmentA(), getString(R.string.FragmentA))
      adapter?.addFragment(FragmentB(), getString(R.string.FragmentB))
  
      pager.adapter = adapter
  }
  </code></pre>
  
  <p><strong>Fragment B:-</strong></p>
  
  <p>override fun onCreateView(inflater: LayoutInflater,
  container: ViewGroup?,savedInstanceState: Bundle?): View? {</p>
  
  <pre><code>    // Inflate the layout for this fragment
      val rootView = inflater.inflate(R.layout.layout_view, container, false)
      listView = rootView.findViewById(R.id.listView)
      return rootView
  }
  
  
  override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
      super.onViewCreated(view, savedInstanceState)
      myAdapter = MyAdapter(list)
      listView?.itemAnimator = DefaultItemAnimator()
      listView?.adapter = myAdapter
  
  }
  </code></pre>