Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ikelos/a91f0453e030f5932ac6 to your computer and use it in GitHub Desktop.
Save ikelos/a91f0453e030f5932ac6 to your computer and use it in GitHub Desktop.
busybox-free patch for custom path location
From fae8727598d22b698f1eb35700744c9afde27f07 Mon Sep 17 00:00:00 2001
From: Mike Auty <mike.auty@gmail.com>
Date: Tue, 8 Dec 2015 23:36:51 +0000
Subject: [PATCH] Fix the custom path location from stopping directories being
used.
---
src/stericson/busybox/listeners/Location.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/stericson/busybox/listeners/Location.java b/src/stericson/busybox/listeners/Location.java
index 029f79c..bda4f62 100644
--- a/src/stericson/busybox/listeners/Location.java
+++ b/src/stericson/busybox/listeners/Location.java
@@ -33,7 +33,7 @@ public class Location implements OnItemSelectedListener, JobCallback {
.setView(input)
.setPositiveButton("Ok", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int whichButton) {
- if (RootTools.exists(input.getText().toString())) {
+ if (RootTools.exists(input.getText().toString(), true)) {
activity.setCustomPath(input.getText().toString());
Toast.makeText(activity, "Custom install path set to " + activity.getCustomPath(), Toast.LENGTH_LONG).show();
} else {
--
2.6.3
Copy link

ghost commented Mar 19, 2017

Cool

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment