Disabled Rollcall and Document modules in main menu (still under
development)
This commit is contained in:
parent
5b9a58a5c0
commit
741b6e3102
|
@ -114,15 +114,16 @@ public class SWADMain extends MenuExpandableListActivity {
|
|||
/**
|
||||
* Group position inside the main menu for Course group
|
||||
* */
|
||||
private int COURSE_GROUP = 2;
|
||||
//private int COURSE_GROUP = 2;
|
||||
/**
|
||||
* Group position inside the main menu for Enrollment group
|
||||
* */
|
||||
private int ENROLLMENT_GROUP = 3;
|
||||
//private int ENROLLMENT_GROUP = 3;
|
||||
private int ENROLLMENT_GROUP = 2;
|
||||
/**
|
||||
* Group position inside the main menu for User group
|
||||
* */
|
||||
private int USERS_GROUP = 4;
|
||||
//private int USERS_GROUP = 4;
|
||||
/**
|
||||
* Child position inside the messages menu for Notification
|
||||
* */
|
||||
|
@ -506,10 +507,11 @@ public class SWADMain extends MenuExpandableListActivity {
|
|||
courses.put(IMAGE, getResources().getDrawable(R.drawable.blackboard));
|
||||
headerData.add(courses);
|
||||
|
||||
final HashMap<String, Object> enrolment = new HashMap<String,Object>();
|
||||
//DISABLE until it will be functional
|
||||
/*final HashMap<String, Object> enrolment = new HashMap<String,Object>();
|
||||
enrolment.put(NAME, getString(R.string.enrollment));
|
||||
enrolment.put(IMAGE, getResources().getDrawable(R.drawable.enrollment));
|
||||
headerData.add(enrolment);
|
||||
headerData.add(enrolment);*/
|
||||
|
||||
final ArrayList<ArrayList<HashMap<String, Object>>> childData = new ArrayList<ArrayList<HashMap<String, Object>>>();
|
||||
|
||||
|
@ -520,8 +522,8 @@ public class SWADMain extends MenuExpandableListActivity {
|
|||
childData.add(evaluationData);
|
||||
|
||||
//DISABLE until it will be functional
|
||||
final ArrayList<HashMap<String,Object>> documentsData = new ArrayList<HashMap<String, Object>>();
|
||||
childData.add(documentsData);
|
||||
//final ArrayList<HashMap<String,Object>> documentsData = new ArrayList<HashMap<String, Object>>();
|
||||
//childData.add(documentsData);
|
||||
|
||||
final ArrayList<HashMap<String,Object>> enrollmentData = new ArrayList<HashMap<String, Object>>();
|
||||
childData.add(enrollmentData);
|
||||
|
@ -545,7 +547,7 @@ public class SWADMain extends MenuExpandableListActivity {
|
|||
|
||||
//DISABLE until it will be functional
|
||||
//Documents category
|
||||
map = new HashMap<String,Object>();
|
||||
/*map = new HashMap<String,Object>();
|
||||
map.put(NAME, getString(R.string.documentsDownloadModuleLabel));
|
||||
map.put(IMAGE, getResources().getDrawable(R.drawable.folder));
|
||||
documentsData.add(map);
|
||||
|
@ -553,8 +555,7 @@ public class SWADMain extends MenuExpandableListActivity {
|
|||
map = new HashMap<String,Object>();
|
||||
map.put(NAME, getString(R.string.sharedsDownloadModuleLabel));
|
||||
map.put(IMAGE, getResources().getDrawable(R.drawable.folderusers));
|
||||
documentsData.add(map);
|
||||
|
||||
documentsData.add(map);*/
|
||||
|
||||
map = new HashMap<String,Object>();
|
||||
map.put(NAME, getString(R.string.myGroupsModuleLabel));
|
||||
|
@ -586,7 +587,8 @@ public class SWADMain extends MenuExpandableListActivity {
|
|||
//Removes Publish Note from messages menu
|
||||
((ImageExpandableListAdapter) getExpandableListAdapter()).removeChild(MESSAGES_GROUP, PUBLISH_NOTE_CHILD);
|
||||
//Removes completely users menu
|
||||
((ImageExpandableListAdapter) getExpandableListAdapter()).removeGroup(USERS_GROUP);
|
||||
//DISABLE until it will be functional
|
||||
//((ImageExpandableListAdapter) getExpandableListAdapter()).removeGroup(USERS_GROUP);
|
||||
}
|
||||
currentRole = Global.STUDENT_TYPE_CODE;
|
||||
}
|
||||
|
@ -601,7 +603,8 @@ public class SWADMain extends MenuExpandableListActivity {
|
|||
map.put(IMAGE, getResources().getDrawable(R.drawable.note));
|
||||
((ImageExpandableListAdapter) getExpandableListAdapter()).addChild(MESSAGES_GROUP,PUBLISH_NOTE_CHILD, map);
|
||||
|
||||
final HashMap<String, Object> users = new HashMap<String, Object>();
|
||||
//DISABLE until it will be functional
|
||||
/*final HashMap<String, Object> users = new HashMap<String, Object>();
|
||||
users.put(NAME, getString(R.string.users));
|
||||
users.put(IMAGE, getResources().getDrawable(R.drawable.users));
|
||||
|
||||
|
@ -611,7 +614,7 @@ public class SWADMain extends MenuExpandableListActivity {
|
|||
map.put(NAME, getString(R.string.rollcallModuleLabel));
|
||||
map.put(IMAGE, getResources().getDrawable(R.drawable.rollcall));
|
||||
child.add(map);
|
||||
((ImageExpandableListAdapter) getExpandableListAdapter()).addGroup(USERS_GROUP, users, child);
|
||||
((ImageExpandableListAdapter) getExpandableListAdapter()).addGroup(USERS_GROUP, users, child);*/
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user