Change name of MainActivity to more fitting MessageListActivity
This commit is contained in:
parent
18d40997e4
commit
48eb1c855e
|
@ -10,14 +10,14 @@
|
|||
android:supportsRtl="true"
|
||||
android:theme="@style/AppTheme">
|
||||
<activity android:name=".DisplayMessageActivity"
|
||||
android:parentActivityName=".MainActivity">
|
||||
android:parentActivityName=".MessageListActivity">
|
||||
<!-- The meta-data tag is required if you support API level 15 and lower -->
|
||||
<meta-data
|
||||
android:name="android.support.PARENT_ACTIVITY"
|
||||
android:value=".MainActivity" />
|
||||
android:value=".MessageListActivity" />
|
||||
</activity>
|
||||
|
||||
<activity android:name=".MainActivity">
|
||||
<activity android:name=".MessageListActivity">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ import androidx.recyclerview.widget.LinearLayoutManager
|
|||
import androidx.recyclerview.widget.RecyclerView
|
||||
import kotlin.collections.ArrayList
|
||||
|
||||
class MainActivity : AppCompatActivity() {
|
||||
class MessageListActivity : AppCompatActivity() {
|
||||
private lateinit var recyclerView: RecyclerView
|
||||
private lateinit var viewAdapter: RecyclerView.Adapter<*>
|
||||
private lateinit var spinner: Spinner
|
||||
|
@ -25,7 +25,7 @@ class MainActivity : AppCompatActivity() {
|
|||
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
setContentView(R.layout.activity_main)
|
||||
setContentView(R.layout.activity_message_list)
|
||||
|
||||
val viewManager = LinearLayoutManager(this)
|
||||
viewManager.stackFromEnd = true
|
|
@ -4,7 +4,7 @@
|
|||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".MainActivity">
|
||||
tools:context=".MessageListActivity">
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/messageList"
|
Loading…
Reference in New Issue