mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 09:08:52 -06:00
fixed ktlint erorrs and is building successfully now
This commit is contained in:
@@ -34,8 +34,8 @@ import org.isoron.uhabits.core.models.Entry.Companion.UNKNOWN
|
|||||||
import org.isoron.uhabits.core.models.Entry.Companion.YES_MANUAL
|
import org.isoron.uhabits.core.models.Entry.Companion.YES_MANUAL
|
||||||
import org.isoron.uhabits.databinding.CheckmarkPopupBinding
|
import org.isoron.uhabits.databinding.CheckmarkPopupBinding
|
||||||
import org.isoron.uhabits.utils.InterfaceUtils.getFontAwesome
|
import org.isoron.uhabits.utils.InterfaceUtils.getFontAwesome
|
||||||
import org.isoron.uhabits.utils.sres
|
|
||||||
import org.isoron.uhabits.utils.showConfetti
|
import org.isoron.uhabits.utils.showConfetti
|
||||||
|
import org.isoron.uhabits.utils.sres
|
||||||
|
|
||||||
class CheckmarkDialog : AppCompatDialogFragment() {
|
class CheckmarkDialog : AppCompatDialogFragment() {
|
||||||
var onToggle: (Int, String) -> Unit = { _, _ -> }
|
var onToggle: (Int, String) -> Unit = { _, _ -> }
|
||||||
|
|||||||
@@ -120,7 +120,7 @@ class NumberDialog : AppCompatDialogFragment() {
|
|||||||
val konfettiView = requireActivity().findViewById<LinearLayout>(R.id.konfettiLayout)
|
val konfettiView = requireActivity().findViewById<LinearLayout>(R.id.konfettiLayout)
|
||||||
|
|
||||||
if (value > 0.0) {
|
if (value > 0.0) {
|
||||||
//To motivate, show confetti even if some value is present
|
// To motivate, show confetti even if some value is present
|
||||||
showConfetti(konfettiView)
|
showConfetti(konfettiView)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user