Mercurial > 510Connectbot
comparison src/com/five_ten_sg/connectbot/HostListActivity.java @ 35:9925ea1aa279 tn5250
start tn5250 integration
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Tue, 10 Jun 2014 15:51:59 -0700 |
parents | 75d86b7fd3f0 |
children | 77ac18bc1b2f |
comparison
equal
deleted
inserted
replaced
34:75d86b7fd3f0 | 35:9925ea1aa279 |
---|---|
183 hostdb = new HostDatabase(this); | 183 hostdb = new HostDatabase(this); |
184 updateList(); | 184 updateList(); |
185 sortedByColor = prefs.getBoolean(PreferenceConstants.SORT_BY_COLOR, false); | 185 sortedByColor = prefs.getBoolean(PreferenceConstants.SORT_BY_COLOR, false); |
186 registerForContextMenu(getListView()); | 186 registerForContextMenu(getListView()); |
187 getListView().setOnItemClickListener(new OnItemClickListener() { | 187 getListView().setOnItemClickListener(new OnItemClickListener() { |
188 | |
189 public synchronized void onItemClick(AdapterView<?> parent, View view, int position, long id) { | 188 public synchronized void onItemClick(AdapterView<?> parent, View view, int position, long id) { |
190 // launch off to console details | 189 // launch off to console details |
191 HostBean host = (HostBean) getListView().getItemAtPosition(position); | 190 HostBean host = (HostBean) getListView().getItemAtPosition(position); |
192 Uri uri = host.getUri(); | 191 Uri uri = host.getUri(); |
193 Intent contents = new Intent(Intent.ACTION_VIEW, uri); | 192 Intent contents = new Intent(Intent.ACTION_VIEW, uri); |