Skip to content

Commit

Permalink
Added delete vibration to dialpad
Browse files Browse the repository at this point in the history
  • Loading branch information
roeiedri committed Oct 20, 2021
1 parent 61dcf91 commit 415e7ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ interface AudioInteractor : BaseInteractor<AudioInteractor.Listener> {
fun playToneByKey(keyCode: Int)
fun playTone(tone: Int, durationMs: Int)

fun vibrate(millis: Long)
fun vibrate(millis: Long = 10)

enum class AudioMode(val mode: Int) {
NORMAL(android.media.AudioManager.MODE_NORMAL),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ class DialpadPresenter<V : DialpadContract.View>(view: V) :

override fun onDeleteClick() {
view.invokeKey(KEYCODE_DEL)
boundComponent.audioInteractor.vibrate()
}

override fun onAddContactClick() {
Expand Down

0 comments on commit 415e7ce

Please sign in to comment.