Skip to content

Commit

Permalink
[ADD] #12 - Add Start Farewell Logic
Browse files Browse the repository at this point in the history
  • Loading branch information
mdb1217 committed Mar 6, 2022
1 parent 2a83b5d commit cb6112b
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -69,6 +71,8 @@ class MenuView(
tvContent.text = getString(R.string.accept_explain)
isBottomLineNotVisible = true
}

setMenuClickEvent()
}

private fun setMenuClickEvent() {
Expand All @@ -85,7 +89,9 @@ class MenuView(
}

with(menuItems[FAREWELL]) {
clItem.setOnClickListener { }
clItem.setOnClickListener {
context.startActivity(Intent(context, FarewellMainActivity::class.java))
}
}

with(menuItems[ACCEPT]) {
Expand Down

0 comments on commit cb6112b

Please sign in to comment.