Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[Android] Remove artificial limitation to not leave the sdcard direct…
…ory in the folder browser as well.
  • Loading branch information
Sonicadvance1 committed Jun 11, 2013
1 parent fcf86f1 commit 1bea76a
Showing 1 changed file with 2 additions and 3 deletions.
Expand Up @@ -49,16 +49,15 @@ private void Fill(File f)
Collections.sort(dir);
Collections.sort(fls);
dir.addAll(fls);
if (!f.getName().equalsIgnoreCase("sdcard"))
dir.add(0, new GameListItem(getApplicationContext(), "..", "Parent Directory", f.getParent()));
if (!f.getPath().equalsIgnoreCase("/"))
dir.add(0, new GameListItem(getApplicationContext(), "..", "Parent Directory", f.getParent()));

adapter = new GameListAdapter(this,R.layout.folderbrowser,dir);
this.setListAdapter(adapter);
}

@Override
protected void onListItemClick(ListView l, View v, int position, long id) {
// TODO Auto-generated method stub
super.onListItemClick(l, v, position, id);
GameListItem o = adapter.getItem(position);
if(o.getData().equalsIgnoreCase("folder")||o.getData().equalsIgnoreCase("parent directory")){
Expand Down

0 comments on commit 1bea76a

Please sign in to comment.