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 {