Skip to content

Commit

Permalink
cancel button action
Browse files Browse the repository at this point in the history
  • Loading branch information
jclemus91 authored and Julio Lemus committed Jul 16, 2019
1 parent 28b5bf7 commit ea68e4c
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.navigation.fragment.findNavController
import com.training.notes.R
import kotlinx.android.synthetic.main.add_note_fragment.*
import kotlinx.android.synthetic.main.add_note_fragment.buttonCancel
import kotlinx.android.synthetic.main.add_note_fragment.buttonSave
import kotlinx.android.synthetic.main.add_note_fragment.etDescription
import kotlinx.android.synthetic.main.add_note_fragment.etTitle
import org.koin.android.viewmodel.ext.android.viewModel

class AddNoteFragment : Fragment() {
Expand All @@ -27,5 +30,8 @@ class AddNoteFragment : Fragment() {
)
findNavController().popBackStack()
}
buttonCancel.setOnClickListener {
findNavController().popBackStack()
}
}
}

0 comments on commit ea68e4c

Please sign in to comment.