Android: Don't call toast methods off UI thread

This commit is contained in:
Connor McLaughlin committed 2021-01-21 13:56:10 +10:00
1 parent 4433197665
commit 3c3bfdea93
2 files changed
+9 -23

No files matched your search

@@ -25,14 +25,6 @@ public class AndroidHostInterface {
this.mContext = context;
}
public void reportError(String message) {
Toast.makeText(mContext, message, Toast.LENGTH_LONG).show();
}
public void reportMessage(String message) {
Toast.makeText(mContext, message, Toast.LENGTH_SHORT).show();
}
public InputStream openAssetStream(String path) {
try {
return mContext.getAssets().open(path, AssetManager.ACCESS_STREAMING);