title: Problems where element is not added when adding elements in the recyclerview
body: <p>There was a problem with the recyclerview list being added only initially and not being added after the second.</p>
  <p>MainActivity.kt</p>
  <pre><code>package com.malkinfo.editingrecyclerview
  
  import android.content.Intent
  import androidx.appcompat.app.AppCompatActivity
  import android.os.Bundle
  import android.widget.Toast
  import androidx.recyclerview.widget.LinearLayoutManager
  import androidx.recyclerview.widget.RecyclerView
  import com.google.android.material.floatingactionbutton.FloatingActionButton
  import com.malkinfo.editingrecyclerview.added_data.Companion.start_time_hou
  import com.malkinfo.editingrecyclerview.added_data.Companion.start_time_min
  import com.malkinfo.editingrecyclerview.model.UserData
  import com.malkinfo.editingrecyclerview.view.UserAdapter
  
  class MainActivity : AppCompatActivity() {
      private lateinit var addsBtn:FloatingActionButton
      private lateinit var recv:RecyclerView
      private lateinit var userList:ArrayList&lt;UserData&gt;
      private lateinit var userAdapter:UserAdapter
  
      override fun onCreate(savedInstanceState: Bundle?) {
          super.onCreate(savedInstanceState)
          setContentView(R.layout.activity_main)
          userList = ArrayList()
          addsBtn = findViewById(R.id.addingBtn)
          recv = findViewById(R.id.mRecycler)
          userAdapter = UserAdapter(this,userList)
          recv.layoutManager = LinearLayoutManager(this)
          recv.adapter = userAdapter
          addsBtn.setOnClickListener {
              startActivity(Intent(this@MainActivity,next_activity::class.java))
          }
          if(intent.hasExtra(&quot;name&quot;)){
  
              addInfo2()
          }
  
      }
      private fun addInfo2(): ArrayList&lt;UserData&gt; {
          var names = start_time_hou
          var number = start_time_min
          userList.add(UserData(&quot;Name: ${names}&quot;,&quot;Mobile No. : $number&quot;)) 
          userAdapter.notifyDataSetChanged() 
          Toast.makeText(this,&quot;${userList}&quot;,Toast.LENGTH_LONG).show()
  
          return userList
      }
  }
  </code></pre>
  <p>UserAdapter.kt</p>
  <pre><code>package com.malkinfo.editingrecyclerview.view
  
  import android.content.Context
  import android.view.LayoutInflater
  import android.view.View
  import android.view.ViewGroup
  import android.widget.*
  import androidx.recyclerview.widget.RecyclerView
  import com.malkinfo.editingrecyclerview.R
  import com.malkinfo.editingrecyclerview.model.UserData
  
  class UserAdapter(val c:Context,val userList:ArrayList&lt;UserData&gt;):RecyclerView.Adapter&lt;UserAdapter.UserViewHolder&gt;()
  {
  
    inner class UserViewHolder(val v:View):RecyclerView.ViewHolder(v){
        var name:TextView
        var mbNum:TextView
        var mMenus:ImageView
        var mToggle:ToggleButton
  
        init {
            name = v.findViewById&lt;TextView&gt;(R.id.mTitle)
            mbNum = v.findViewById&lt;TextView&gt;(R.id.mSubTitle)
            mToggle=v.findViewById(R.id.toggleButton)
            mMenus = v.findViewById(R.id.mMenus)
        }
    }
  
      override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): UserViewHolder {
         val inflater = LayoutInflater.from(parent.context)
          val v  = inflater.inflate(R.layout.list_item,parent,false)
          return UserViewHolder(v)
      }
  
      override fun onBindViewHolder(holder: UserViewHolder, position: Int) {
  
         val newList = userList[position]
          holder.name.text = newList.userName
          holder.mbNum.text = newList.userMb
      }
  
      override fun getItemCount(): Int {
        return  userList.size
      }
  }
  </code></pre>
  <p>next_activity.kt</p>
  <pre><code>package com.malkinfo.editingrecyclerview
  
  import android.content.Intent
  import androidx.appcompat.app.AppCompatActivity
  import android.os.Bundle
  import com.malkinfo.editingrecyclerview.added_data.Companion.end_time_hou
  import com.malkinfo.editingrecyclerview.added_data.Companion.end_time_min
  import com.malkinfo.editingrecyclerview.added_data.Companion.start_time_hou
  import com.malkinfo.editingrecyclerview.added_data.Companion.start_time_min
  import kotlinx.android.synthetic.main.activity_next2.*
  import kotlinx.android.synthetic.main.add_item.*
  
  class next_activity : AppCompatActivity() {
      override fun onCreate(savedInstanceState: Bundle?) {
          super.onCreate(savedInstanceState)
          setContentView(R.layout.activity_next2)
          button2.setOnClickListener {
              finish()
          }
          button.setOnClickListener {
              start_time_hou=&quot;1&quot;
              start_time_min=&quot;2&quot;
              end_time_hou=3
              end_time_min=4
              val intent_time= Intent(this@next_activity,MainActivity::class.java)
              intent_time.putExtra(&quot;name&quot;,&quot;lir&quot;)
              startActivity(intent_time)
          }
          button3.setOnClickListener {
              start_time_hou=&quot;1123&quot;
              start_time_min=&quot;52&quot;
              val intent_time= Intent(this@next_activity,MainActivity::class.java)
              intent_time.putExtra(&quot;name&quot;,&quot;lir&quot;)
              startActivity(intent_time)
          }
      }
  }
  </code></pre>
  <p>added_data.kt</p>
  <pre><code>package com.malkinfo.editingrecyclerview
  
  class added_data {
      companion object {
          var start_time_hou = &quot;0&quot;
          var start_time_min = &quot;0&quot;
          var end_time_hou = 0
          var end_time_min = 0
      }
  }
  </code></pre>
  <p>UserData.kt</p>
  <pre><code>package com.malkinfo.editingrecyclerview.model
  
  data class UserData (
      var userName:String,
      var userMb:String
          )
  </code></pre>
  <p>What I want is to move from MainACtivity to next_activity, and every time I press the button in next_activity, a new recycleview element is created. However, as I said earlier, there is no additional generation and only one element of data changes.</p>