fix toast

`Use` is undefined, should be `use`.
This commit is contained in:
Adrian Antkowiak 2021-11-06 10:55:02 +01:00 committed by GitHub
parent e627f950c1
commit e88989f182
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1196,7 +1196,7 @@ TODO
// 0 = // https://developer.android.com/reference/android/widget/Toast#LENGTH_LONG
Java.scheduleOnMainThread(() => {
Java.use("android.widget.Toast")
.makeText(Java.use("android.app.ActivityThread").currentApplication().getApplicationContext(), Java.Use("java.lang.StringBuilder").$new("Text to Toast here"), 0).show();
.makeText(Java.use("android.app.ActivityThread").currentApplication().getApplicationContext(), Java.use("java.lang.StringBuilder").$new("Text to Toast here"), 0).show();
});
```