Skip to content

Commit

Permalink
🔧 Fix: Fixed MainActivity.kt file with toastText function handler.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dynesshely committed Mar 29, 2023
1 parent ecfd92b commit 86bf109
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -25,9 +25,9 @@ class MainActivity : FlutterActivity() {
}

if (call.method == "toastText") {
var text = call.argument("text")
Toast.makeText(this, mac, Toast.LENGTH_LONG).show()
result.success()
var text = call.argument("text") ?: ""
result.success(text)
Toast.makeText(this, text, Toast.LENGTH_LONG).show()
}
}
}
Expand Down

0 comments on commit 86bf109

Please sign in to comment.