From 8dd30b0a4bb156316f4de8db7315fa401ac11707 Mon Sep 17 00:00:00 2001 From: Jeremy Wu Date: Sat, 11 Jul 2015 02:59:59 +0800 Subject: [PATCH] Update file association settings --- LimeStudio/app/src/main/AndroidManifest.xml | 79 ++++++------------- .../java/net/toload/main/hd/MainActivity.java | 2 +- 2 files changed, 25 insertions(+), 56 deletions(-) diff --git a/LimeStudio/app/src/main/AndroidManifest.xml b/LimeStudio/app/src/main/AndroidManifest.xml index 028ff3a2..0ff74ba8 100644 --- a/LimeStudio/app/src/main/AndroidManifest.xml +++ b/LimeStudio/app/src/main/AndroidManifest.xml @@ -72,68 +72,37 @@ - - - - - - - - - - - - - - + + + + - - - - - - - - - - - - - - - - + + - - - - - - - - - + + + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + diff --git a/LimeStudio/app/src/main/java/net/toload/main/hd/MainActivity.java b/LimeStudio/app/src/main/java/net/toload/main/hd/MainActivity.java index 77169d86..bf9cc79d 100644 --- a/LimeStudio/app/src/main/java/net/toload/main/hd/MainActivity.java +++ b/LimeStudio/app/src/main/java/net/toload/main/hd/MainActivity.java @@ -282,7 +282,7 @@ protected void onCreate(Bundle savedInstanceState) { Uri uri = intent.getData(); String fileName = getContentName(resolver, uri); if(fileName==null) { - uri.getLastPathSegment(); + fileName=uri.getLastPathSegment(); } InputStream input = null; try {