title: Kotlin notifyDataSetChanged not work (BaseAdapter with ListView) in Fragment
body: <p>When using BaseAdapter in ListView, notifyDataSetChanged does not work.</p>
  
  <p>The code is as follows.</p>
  
  <pre><code>class AFragment(val mContext: Context, b: ArrayList&lt;CustomData&gt;) : Fragment() {
  var a: ArrayList&lt;CustomData&gt; = ArrayList&lt;CustomData&gt;()
  
  init{ 
     a.clear()
     a.addAll(b)
  }
  </code></pre>
  
  <p>The follow code is setListView in Fragment ( This code is called by Activity(parents of AFragment)</p>
  
  <pre><code>fun setListView(c: ArrayList&lt;CustomData&gt;) {
      a.clear()
      a.addAll(c)
      mAdapter.notifyDataSetChanged(a)
  }
  </code></pre>
  
  <p>The follow code is CustomAdapter.</p>
  
  <pre><code>class CustomerAdapter(val context: Context?, d: ArrayList&lt;CustomData&gt;) : BaseAdapter() {
      var z: ArrayList&lt;CustomData&gt; = d
  
      fun notifyDataSetChanged(f: ArrayList&lt;CustomData&gt;) {
          z.clear()
          z.addAll(f)
          notifyDataSetChanged()
      }
  </code></pre>
  
  <p>It also confirmed that the 'notifyDataSetChanged(arrayList)' within the adapter was called normally, and that the context was not null, and that all data had been received.</p>
  
  <p>Why... WHY does not it work...? Help me please..... ;(</p>
  
  <p>!!! The Adapter notifyDataSetChanged not work. So.. ArrayList has been changed but is not reflected in ListView.</p>
  
  <pre><code>class CustomAdapter(val context: Context?, arrayList: ArrayList&lt;CustomAdapter&gt;) : BaseAdapter() {
      var mArrayList: ArrayList&lt;CustomAdapter&gt; = arrayTrt
  
      fun notifyDataSetChanged(arrayList: ArrayList&lt;CustomData&gt;) {
          mArrayList.clear()
          mArrayList.addAll(arrayList)
          notifyDataSetChanged()
      }
  
      override fun getView(position: Int, convertView: View?, parent: ViewGroup?): View {
          val view = LayoutInflater.from(context)....
          return view
      }
  
      override fun getItem(position: Int): Any {
          return mArrayList[position]
      }
  
      override fun getItemId(position: Int): Long {
          return position.toLong()
      }
  
      override fun getCount(): Int {
          return mArrayList.size
      }
  
  }
  </code></pre>