Not needed
This commit is contained in:
parent
f5ee9c3181
commit
5e4d707141
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue