Skip to content

Commit

Permalink
build up path of objects browsed through
Browse files Browse the repository at this point in the history
  • Loading branch information
jrudolph committed Jun 23, 2009
1 parent 63bc490 commit 03a0ab3
Show file tree
Hide file tree
Showing 10 changed files with 322 additions and 77 deletions.
12 changes: 12 additions & 0 deletions src/net/virtualvoid/android/browser/Home.java
Expand Up @@ -69,11 +69,23 @@ public CharSequence getName() {
public Class<?> getReturnType() {
return Drawable.class;
}
@Override
public String getPath() {
return name;
}
};
} catch (Exception e) {
throw new RuntimeException(e);
}
}
@Override
public Item byPathSegment(String path) {
try {
return map(android.R.drawable.class.getField(path));
} catch (Exception e) {
return null;
}
}
};
}
public PackageManager getPackageManager(){
Expand Down
1 change: 1 addition & 0 deletions src/net/virtualvoid/android/browser/Item.java
Expand Up @@ -23,4 +23,5 @@ public interface Item {
CharSequence getName();
Class<?> getReturnType();
Object get();
String getPath();
}

0 comments on commit 03a0ab3

Please sign in to comment.