From 5e4d707141665c94dcaaa8d8b7bb27c4c41cadbb Mon Sep 17 00:00:00 2001 From: Andrew Rabert Date: Sun, 5 Mar 2017 12:30:13 -0500 Subject: [PATCH] Not needed --- .../net/nullsum/audinaut/view/CacheLocationPreference.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/net/nullsum/audinaut/view/CacheLocationPreference.java b/app/src/main/java/net/nullsum/audinaut/view/CacheLocationPreference.java index c1db6d0..68b5732 100644 --- a/app/src/main/java/net/nullsum/audinaut/view/CacheLocationPreference.java +++ b/app/src/main/java/net/nullsum/audinaut/view/CacheLocationPreference.java @@ -117,13 +117,12 @@ public class CacheLocationPreference extends EditTextPreference { final File finalInternalDir = new File(internalDir, "music"); final File finalExternalDir = new File(externalDir, "music"); - final EditText editTextBox = (EditText)view.findViewById(android.R.id.edit); if(finalInternalDir != null && (finalInternalDir.exists() || finalInternalDir.mkdirs())) { internalLocation.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { String path = finalInternalDir.getPath(); - editTextBox.setText(path); + editText.setText(path); } }); } else { @@ -135,7 +134,7 @@ public class CacheLocationPreference extends EditTextPreference { @Override public void onClick(View v) { String path = finalExternalDir.getPath(); - editTextBox.setText(path); + editText.setText(path); } }); } else {