Skip to content

Commit 6a53490

Browse files
committed
Merge pull request #9 from VinceGitHub/patch-1
Update FileChooser.java
2 parents 3df36b1 + 4dfb6ca commit 6a53490

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/org/pyload/android/client/module/FileChooser.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ protected void onListItemClick(ListView l, View v, int position, long id) {
6767
// TODO Auto-generated method stub
6868
super.onListItemClick(l, v, position, id);
6969
Option o = adapter.getItem(position);
70-
if (o.getData().equalsIgnoreCase("folder")
71-
|| o.getData().equalsIgnoreCase("parent directory")) {
70+
if (o.getData().equalsIgnoreCase(R.string.folder)
71+
|| o.getData().equalsIgnoreCase(R.string.parent_dir)) {
7272
currentDir = new File(o.getPath());
7373
fill(currentDir);
7474
} else {
@@ -157,4 +157,4 @@ public View getView(int position, View convertView, ViewGroup parent) {
157157
return v;
158158
}
159159

160-
}
160+
}

0 commit comments

Comments
 (0)