Merge pull request #23 from adiantek/patch-1

fix toast
This commit is contained in:
iddoeldor 2021-11-12 13:20:04 +02:00 committed by GitHub
commit 03a26f73ca
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();
});
```