Not needed

This commit is contained in:
Andrew Rabert 2017-03-05 12:30:13 -05:00
parent f5ee9c3181
commit 5e4d707141
1 changed files with 2 additions and 3 deletions

View File

@ -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 {