Permalink
Browse files

rename ctx to activity since this is what it is

  • Loading branch information...
1 parent 639bec9 commit 73ad9065defb6d652247be295441a95b5ba88f51 @jrudolph committed Jun 25, 2009
Showing with 7 additions and 7 deletions.
  1. +7 −7 src/net/virtualvoid/android/browser/ObjectBrowser.java
@@ -22,7 +22,7 @@
import java.util.ArrayList;
import java.util.LinkedList;
-import android.content.Context;
+import android.app.Activity;
import android.content.pm.PackageManager;
import android.content.res.AssetManager;
import android.content.res.Resources;
@@ -32,10 +32,10 @@
LinkedList<HistoryItem> history = new LinkedList<HistoryItem>();
ArrayList<Object> saved = new ArrayList<Object>();
Home mycastle = new Home(this);
- private Context ctx;
+ private Activity activity;
- public ObjectBrowser(Context ctx) {
- this.ctx = ctx;
+ public ObjectBrowser(Activity activity) {
+ this.activity = activity;
}
static class HistoryItem{
@@ -59,13 +59,13 @@ private static HistoryItem history(Object object,String path){
private final static int MAX_HISTORY = 25;
public Resources getResources(){
- return ctx.getResources();
+ return activity.getResources();
}
public PackageManager getPackageManager(){
- return ctx.getPackageManager();
+ return activity.getPackageManager();
}
public AssetManager getAssets(){
- return ctx.getAssets();
+ return activity.getAssets();
}
Home getHome(){

0 comments on commit 73ad906

Please sign in to comment.