Hello, you need to run the ContactsDetail NavigationDrawer activity from the MenuMain NavigationDrawer.I write a bug. How to fix it? Thank you
https://hastebin.com/xanowezila.cpp
:stackoverflow: 5
r
radityagumay
10/09/2018, 4:22 PM
@jurajsolarml check on line number 61. Is that valid class?
j
jurajsolarml
10/09/2018, 5:34 PM
ok, I'm solving it :))
r
radityagumay
10/11/2018, 5:03 AM
Great! So, what's when wrong?
@jurajsolarml
j
jurajsolarml
10/11/2018, 10:46 AM
Rightly should be:
override fun onNavigationItemSelected(item: MenuItem): Boolean {
// Handle navigation view item clicks here.
when (item.itemId) {
R.id.navmenu_main_contacts -> { // Handle the Contacts action
val intent = Intent(this, ContactsDetail::class.java)
startActivity(intent) //activity_contacts_detail
}
R.id.navmenu_main_mapa -> {
val intent = Intent(this, MapsActivity::class.java)
startActivity(intent)