This commit is contained in:
Anuken
2019-09-18 12:46:11 -04:00
parent c6a4bf69ee
commit 1e667946b3
3 changed files with 21 additions and 16 deletions

View File

@ -76,6 +76,8 @@ public class AndroidLauncher extends AndroidApplication{
if(code == Activity.RESULT_OK && in != null && in.getData() != null){
Uri uri = in.getData();
if(uri.getPath().contains("(invalid)")) return;
Core.app.post(() -> Core.app.post(() -> cons.accept(new FileHandle(uri.getPath()){
@Override
public InputStream read(){