equal
deleted
inserted
replaced
63 protected void onCreate(Bundle saveBundle) { |
63 protected void onCreate(Bundle saveBundle) { |
64 super.onCreate(saveBundle); |
64 super.onCreate(saveBundle); |
65 mRosterListener = new BeemRosterListener(); |
65 mRosterListener = new BeemRosterListener(); |
66 mSettings = getSharedPreferences(getString(R.string.PreferenceFileName), MODE_PRIVATE); |
66 mSettings = getSharedPreferences(getString(R.string.PreferenceFileName), MODE_PRIVATE); |
67 mBeemApplication = BeemApplication.getApplication(this); |
67 mBeemApplication = BeemApplication.getApplication(this); |
|
68 if (mSettings.getString(getString(R.string.PreferenceHostKey), "").equals("")) |
|
69 startActivityForResult(new Intent(this, ContactListSettings.class), PREFERENCECHANGED); |
68 } |
70 } |
69 |
71 |
70 @Override |
72 @Override |
71 protected void onResume() { |
73 protected void onResume() { |
72 super.onResume(); |
74 super.onResume(); |
178 curGroupMap.put("GROUP", listGroup.get(i)); |
180 curGroupMap.put("GROUP", listGroup.get(i)); |
179 |
181 |
180 List<Map<String, Contact>> children = new ArrayList<Map<String, Contact>>(); |
182 List<Map<String, Contact>> children = new ArrayList<Map<String, Contact>>(); |
181 for (int j = 0; j < listContact.size(); ++j) { |
183 for (int j = 0; j < listContact.size(); ++j) { |
182 Contact c = listContact.get(j); |
184 Contact c = listContact.get(j); |
183 if (groupSize == 0 || c.getGroups().contains(listGroup.get(i)) ) { |
185 if (groupSize == 0 || c.getGroups().contains(listGroup.get(i))) { |
184 Log.i(TAG, c.getID() + " " + c.getJID()); |
186 Log.i(TAG, c.getID() + " " + c.getJID()); |
185 Map<String, Contact> curChildMap = new HashMap<String, Contact>(); |
187 Map<String, Contact> curChildMap = new HashMap<String, Contact>(); |
186 children.add(curChildMap); |
188 children.add(curChildMap); |
187 curChildMap.put(CHILD, c); |
189 curChildMap.put(CHILD, c); |
188 } |
190 } |