Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package net.ardevd.tagius.features.records.ui.add

import android.os.Bundle
import android.view.HapticFeedbackConstants
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
Expand Down Expand Up @@ -44,6 +45,7 @@ class AddRecordBottomSheet(

if (description.isNotEmpty()) {
onStartTimer(description)
it.performHapticFeedback(HapticFeedbackConstants.CONFIRM)
dismiss() // Close the sheet
} else {
binding.inputLayout.error = "Please enter a description"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package net.ardevd.tagius.features.records.ui.list

import android.os.Bundle
import android.view.HapticFeedbackConstants
import android.view.Menu
import android.view.MenuInflater
import android.view.MenuItem
Expand Down Expand Up @@ -111,6 +112,7 @@ class RecordsListFragment : Fragment(R.layout.fragment_records_list) {
val fab = requireActivity().findViewById<FloatingActionButton>(R.id.fabAdd)
fab.isVisible = true
fab.setOnClickListener {
fab.performHapticFeedback(HapticFeedbackConstants.VIRTUAL_KEY)
showAddSheet()
}

Expand Down
Loading