Permalink
Browse files

Made some changes per alankila

  • Loading branch information...
Pedlar committed Dec 16, 2011
1 parent 81ddd6d commit c168611575db64f814c808ba9dd305d1ba814a80
@@ -77,18 +77,15 @@
private static final HashMap<Integer, MasterLists> listHead = new HashMap<Integer, MasterLists>();
static {
- try {
- listHead.put(0, ApplicationList.class.newInstance());
- listHead.put(1, DisplayList.class.newInstance());
- listHead.put(2, InputList.class.newInstance());
- listHead.put(3, InterfaceList.class.newInstance());
- listHead.put(4, LockscreenList.class.newInstance());
- listHead.put(5, PerformanceList.class.newInstance());
- listHead.put(6, SoundList.class.newInstance());
- listHead.put(7, SystemList.class.newInstance());
- listHead.put(8, TabletList.class.newInstance());
- } catch (Exception e) {
- }
+ listHead.put(0, new ApplicationList());
+ listHead.put(1, new DisplayList());
+ listHead.put(2, new InputList());
+ listHead.put(3, new InterfaceList());
+ listHead.put(4, new LockscreenList());
+ listHead.put(5, new PerformanceList());
+ listHead.put(6, new SoundList());
+ listHead.put(7, new SystemList());
+ listHead.put(8, new TabletList());
}
@Override
@@ -3,21 +3,11 @@
import java.util.ArrayList;
public abstract class MasterLists {
- private ArrayList mApplicationList;
- private ArrayList mDisplayList;
- private ArrayList mInputList;
- private ArrayList mInterfaceList;
- private ArrayList mLockscreenList;
- private ArrayList mPerformanceList;
- private ArrayList mSoundList;
- private ArrayList mSystemList;
- private ArrayList mTabletList;
-
public static final int TYPE_CATEGORY = 0;
- public static final int TYPE_NORMAL = 1;
+ public static final int TYPE_NORMAL = 1;
public static final int TYPE_SWITCH = 2;
- public class List {
+ public static class List {
public int titleResId;
public int summaryResId;
public String intent;
@@ -32,6 +22,4 @@ public List(int arg1, int arg2, String arg3, int arg4) {
}
public abstract ArrayList<List> getList();
-
}
-

0 comments on commit c168611

Please sign in to comment.