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 finalInternalDir = new File(internalDir, "music");
|
||||||
final File finalExternalDir = new File(externalDir, "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())) {
|
if(finalInternalDir != null && (finalInternalDir.exists() || finalInternalDir.mkdirs())) {
|
||||||
internalLocation.setOnClickListener(new View.OnClickListener() {
|
internalLocation.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
String path = finalInternalDir.getPath();
|
String path = finalInternalDir.getPath();
|
||||||
editTextBox.setText(path);
|
editText.setText(path);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
@ -135,7 +134,7 @@ public class CacheLocationPreference extends EditTextPreference {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
String path = finalExternalDir.getPath();
|
String path = finalExternalDir.getPath();
|
||||||
editTextBox.setText(path);
|
editText.setText(path);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue