Changeset 1042783 in orbit for android/src
- Timestamp:
- 12/28/13 01:52:40 (9 years ago)
- Branches:
- master, Servo
- Children:
- fa8ffb5
- Parents:
- 55f272e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
android/src/info/puzzlebox/orbit/OrbitTabActivity.java
r55f272e r1042783 95 95 96 96 Configuration config; 97 98 // int viewSpaceGenerateAudioWidth = 120;99 97 100 98 String saveToAdvanced = null; … … 276 274 * Update settings according to default UI 277 275 */ 278 279 276 updateScreenLayout(); 280 // updateAdvancedOptions();281 282 // updatePower();283 277 284 278 … … 309 303 310 304 311 /**312 * Set Custom Device Settings313 */314 // setDeviceCustomSettings();315 316 317 305 } // onCreate 318 306 … … 335 323 public boolean onOptionsItemSelected(MenuItem item) { 336 324 if (item.getItemId() == android.R.id.home || item.getItemId() == 0) { 337 // Toast.makeText(this, "About menu: \"" + item.getTitle() + "\"", Toast.LENGTH_SHORT).show();338 325 Toast.makeText(this, "Puzzlebox Orbit\n Version: " + versionName, Toast.LENGTH_SHORT).show(); 339 326 return false; 340 327 } 341 //// THEME = item.getItemId();342 // Toast.makeText(this, "Theme changed to \"" + item.getTitle() + "\"", Toast.LENGTH_SHORT).show();343 328 Toast.makeText(this, "About menu: \"" + item.getTitle() + "\"", Toast.LENGTH_SHORT).show(); 344 329 return true; … … 526 511 527 512 } catch (Exception e) { 528 // TODO Auto-generated catch block529 513 Log.v(TAG, "Exception: onDestroy()"); 530 514 e.printStackTrace(); … … 548 532 549 533 } catch (Exception e) { 550 // TODO Auto-generated catch block551 534 Log.v(TAG, "Exception: onUnbind()"); 552 535 e.printStackTrace(); … … 663 646 public void updateScreenLayoutSmall() { 664 647 665 // @SuppressWarnings("deprecation")666 // int width = getWindowManager().getDefaultDisplay().getWidth();667 // int height = getWindowManager().getDefaultDisplay().getHeight();668 669 // viewSpaceGenerateAudioWidth = width / 4; // approximate center of screen670 671 648 if (eegDevice == "ThinkGear") { 672 649 FragmentTabFlightThinkGear fragmentFlight = … … 711 688 712 689 } // maximizeAudioVolume 713 714 715 // ################################################################716 717 // public int calculateSignal(int signal) {718 //719 // /**720 // * The ThinkGear protocol states that a signal level of 200 will be721 // * returned when a clean ground/reference is not detected at the ear clip,722 // * and a value of 0 when the signal is perfectly clear. We need to723 // * convert this information into usable settings for the Signal724 // * progress bar725 // */726 //727 // int value;728 //729 // switch (signal) {730 // case 200:731 // value = 0;732 // case 0:733 // value = 100;734 // default:735 // value = (int)(100 - ((signal / 200.0) * 100));736 // }737 //738 // return(value);739 //740 // } // calculateSignal741 690 742 691 … … 1221 1170 1222 1171 } catch (ClientProtocolException e) { 1223 // TODO Auto-generated catch block1224 1172 e.printStackTrace(); 1225 1173 } catch (IOException e) { 1226 // TODO Auto-generated catch block1227 1174 e.printStackTrace(); 1228 1175 } 1229 1176 1230 1177 } catch (Exception e) { 1231 // TODO Auto-generated catch block1232 1178 e.printStackTrace(); 1233 1179 } … … 1240 1186 1241 1187 1242 } // Orbit Activity1188 } // OrbitTabActivity
Note: See TracChangeset
for help on using the changeset viewer.