Merge pull request #1147 from BurgerZ/patch-4

Hacky fix FileNotFoundException if file name ends with space
This commit is contained in:
Connor Tumbleson 2016-01-26 07:21:43 -05:00
commit 8525be6fab

View File

@ -151,7 +151,7 @@ public class Main {
// make out folder manually using name of apk // make out folder manually using name of apk
String outName = apkName; String outName = apkName;
outName = outName.endsWith(".apk") ? outName.substring(0, outName = outName.endsWith(".apk") ? outName.substring(0,
outName.length() - 4) : outName + ".out"; outName.length() - 4).trim() : outName + ".out";
// make file from path // make file from path
outName = new File(outName).getName(); outName = new File(outName).getName();