comparison src/com/five_ten_sg/connectbot/HostListActivity.java @ 112:77ac18bc1b2f

cleanup java formatting
author Carl Byington <carl@five-ten-sg.com>
date Wed, 18 Jun 2014 13:03:01 -0700
parents 9925ea1aa279
children 265a4733edcb
comparison
equal deleted inserted replaced
111:6a0ad4d384ea 112:77ac18bc1b2f
176 if (!agreed) { 176 if (!agreed) {
177 startActivityForResult(new Intent(this, WizardActivity.class), REQUEST_EULA); 177 startActivityForResult(new Intent(this, WizardActivity.class), REQUEST_EULA);
178 } 178 }
179 179
180 makingShortcut = Intent.ACTION_CREATE_SHORTCUT.equals(getIntent().getAction()) 180 makingShortcut = Intent.ACTION_CREATE_SHORTCUT.equals(getIntent().getAction())
181 || Intent.ACTION_PICK.equals(getIntent().getAction()); 181 || Intent.ACTION_PICK.equals(getIntent().getAction());
182 // connect with hosts database and populate list 182 // connect with hosts database and populate list
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
188 public synchronized void onItemClick(AdapterView<?> parent, View view, int position, long id) { 189 public synchronized void onItemClick(AdapterView<?> parent, View view, int position, long id) {
189 // launch off to console details 190 // launch off to console details
190 HostBean host = (HostBean) getListView().getItemAtPosition(position); 191 HostBean host = (HostBean) getListView().getItemAtPosition(position);
191 Uri uri = host.getUri(); 192 Uri uri = host.getUri();
192 Intent contents = new Intent(Intent.ACTION_VIEW, uri); 193 Intent contents = new Intent(Intent.ACTION_VIEW, uri);