From cb6112b752ead3048d52648a256fad2f4fd7a959 Mon Sep 17 00:00:00 2001 From: mdb1217 <70698151+mdb1217@users.noreply.github.com> Date: Mon, 7 Mar 2022 00:22:54 +0900 Subject: [PATCH] [ADD] #12 - Add Start Farewell Logic --- .../main/java/org/mascota/home/ui/view/custom/MenuView.kt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/features/home/src/main/java/org/mascota/home/ui/view/custom/MenuView.kt b/features/home/src/main/java/org/mascota/home/ui/view/custom/MenuView.kt index 134dd86..2da0814 100644 --- a/features/home/src/main/java/org/mascota/home/ui/view/custom/MenuView.kt +++ b/features/home/src/main/java/org/mascota/home/ui/view/custom/MenuView.kt @@ -1,12 +1,14 @@ package org.mascota.home.ui.view.custom import android.content.Context +import android.content.Intent import android.util.AttributeSet import android.view.LayoutInflater import android.view.ViewGroup import android.widget.LinearLayout import androidx.core.view.ViewCompat import org.mascota.core.util.extension.getString +import org.mascota.farewell.ui.view.main.FarewellMainActivity import org.mascota.home.R import org.mascota.home.databinding.ItemHomeBinding @@ -69,6 +71,8 @@ class MenuView( tvContent.text = getString(R.string.accept_explain) isBottomLineNotVisible = true } + + setMenuClickEvent() } private fun setMenuClickEvent() { @@ -85,7 +89,9 @@ class MenuView( } with(menuItems[FAREWELL]) { - clItem.setOnClickListener { } + clItem.setOnClickListener { + context.startActivity(Intent(context, FarewellMainActivity::class.java)) + } } with(menuItems[ACCEPT]) {