/[zanavi_public1]/navit/navit/android/src/com/zoffcc/applications/zanavi/NavitAddressResultListActivity.java
ZANavi

Diff of /navit/navit/android/src/com/zoffcc/applications/zanavi/NavitAddressResultListActivity.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 49 Revision 50
65{ 65{
66 // public static NavitAddressResultListActivity self_ = null; 66 // public static NavitAddressResultListActivity self_ = null;
67 NavitSearchResultListArrayAdapter adapter_ = null; 67 NavitSearchResultListArrayAdapter adapter_ = null;
68 private int selected_id = -1; 68 private int selected_id = -1;
69 private int selected_id_passthru = -1; 69 private int selected_id_passthru = -1;
70 static NavitAddressResultListActivity NavitAddressResultListActivity_s = null;
70 // private Boolean is_empty = true; 71 // private Boolean is_empty = true;
71 // public ArrayList<HashMap<Integer, search_result_entry>> result_list; 72 // public ArrayList<HashMap<Integer, search_result_entry>> result_list;
72 public Map<Integer, List<search_result_entry>> result_list; 73 public Map<Integer, List<search_result_entry>> result_list;
73 74
74 public static int mode = 1; // 0 .. hide towns if streets/housenumbers available 75 public static int mode = 1; // 0 .. hide towns if streets/housenumbers available
127 128
128 // Override how this activity is animated into view 129 // Override how this activity is animated into view
129 // The new activity is pulled in from the left and the current activity is kept still 130 // The new activity is pulled in from the left and the current activity is kept still
130 // This has to be called before onCreate 131 // This has to be called before onCreate
131 overridePendingTransition(R.anim.pull_in_from_right, R.anim.hold); 132 overridePendingTransition(R.anim.pull_in_from_right, R.anim.hold);
133
134 NavitAddressResultListActivity_s = this;
135 Navit.search_list_ready = true;
136 System.out.println("SCREENSHOT:this");
132 137
133 //Log.e("Navit", "all ok"); 138 //Log.e("Navit", "all ok");
134 139
135 Navit.Navit_Address_Result_Struct tmp = new Navit.Navit_Address_Result_Struct(); 140 Navit.Navit_Address_Result_Struct tmp = new Navit.Navit_Address_Result_Struct();
136 141
222 // ListActivity has a ListView, which you can get with: 227 // ListActivity has a ListView, which you can get with:
223 ExpandableListView lv = getExpandableListView(); 228 ExpandableListView lv = getExpandableListView();
224 lv.setOnChildClickListener(this); 229 lv.setOnChildClickListener(this);
225 // lv.setFastScrollEnabled(true); 230 // lv.setFastScrollEnabled(true);
226 231
232 if (Navit.CIDEBUG == 1)
233 {
234 try
235 {
236 lv.expandGroup(0);
237 lv.expandGroup(1);
238 lv.expandGroup(2);
239 }
240 catch (Exception e)
241 {
242 e.printStackTrace();
243 }
244 }
245
227 // Then you can create a listener like so: 246 // Then you can create a listener like so:
228 // lv.setOnItemLongClickListener(new AdapterView.OnItemLongClickListener() 247 // lv.setOnItemLongClickListener(new AdapterView.OnItemLongClickListener()
229 // { 248 // {
230 // @Override 249 // @Override
231 // public boolean onItemLongClick(AdapterView<?> av, View v, int pos, long id) 250 // public boolean onItemLongClick(AdapterView<?> av, View v, int pos, long id)
343 } 362 }
344 setResult(Activity.RESULT_OK, resultIntent); 363 setResult(Activity.RESULT_OK, resultIntent);
345 finish(); 364 finish();
346 } 365 }
347 366
367 static void force_done()
368 {
369 Intent resultIntent = new Intent();
370 resultIntent.putExtra("what", "-");
371 NavitAddressResultListActivity_s.setResult(Activity.RESULT_OK, resultIntent);
372 NavitAddressResultListActivity_s.finish();
373 }
348} 374}

Legend:
Removed from v.49  
changed lines
  Added in v.50

   
Visit the ZANavi Wiki