Skip to content

Commit

Permalink
0.0.14a
Browse files Browse the repository at this point in the history
- Fixed bugs
  • Loading branch information
Sav22999 committed Jan 4, 2020
1 parent 07f9f05 commit 3f6bacd
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ class ListenActivity : AppCompatActivity() {
}

fun API_request() {
StopListening()
var sentence: TextView = this.findViewById(R.id.textListenSentence)
var btnYes: Button = this.findViewById(R.id.btn_yes_thumb)
var btnNo: Button = this.findViewById(R.id.btn_no_thumb)
Expand Down Expand Up @@ -142,9 +143,15 @@ class ListenActivity : AppCompatActivity() {
}
this.mediaPlayer?.setAuxEffectSendLevel(Float.MAX_VALUE)
btnSkip.isEnabled = true

btnYes.isVisible = false
btnNo.isVisible = false
} else {
error1()
btnSkip.isEnabled = true

btnYes.isVisible = false
btnNo.isVisible = false
}

}, Response.ErrorListener {
Expand Down Expand Up @@ -254,6 +261,7 @@ class ListenActivity : AppCompatActivity() {

fun validateClip(value: Boolean) {
try {
StopListening()
var btnYes: Button = this.findViewById(R.id.btn_yes_thumb)
var btnNo: Button = this.findViewById(R.id.btn_no_thumb)
var msg: TextView = this.findViewById(R.id.textMessageAlertListen)
Expand Down

0 comments on commit 3f6bacd

Please sign in to comment.