Changeset 8ef81cf in orbit for android/src


Ignore:
Timestamp:
12/18/13 22:52:40 (8 years ago)
Author:
Steve Castellotti <sc@…>
Branches:
master, Servo
Children:
b8d7a54
Parents:
89a4508
Message:
  • tilt sensor control checkbox added
Location:
android/src/info/puzzlebox/orbit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • android/src/info/puzzlebox/orbit/FragmentTabAdvanced.java

    r355dd62 r8ef81cf  
    6666        CheckBox checkBoxGenerateAudio; 
    6767        CheckBox checkBoxInvertControlSignal; 
     68        CheckBox checkBoxTiltSensorControl; 
    6869        RadioGroup radioGroupChannel; 
    6970        RadioButton radioButtonChannelA; 
     
    163164 
    164165                checkBoxInvertControlSignal = (CheckBox) v.findViewById(R.id.checkBoxInvertControlSignal); 
     166 
     167                checkBoxTiltSensorControl = (CheckBox) v.findViewById(R.id.checkBoxTiltSensorControl); 
    165168 
    166169 
  • android/src/info/puzzlebox/orbit/OrbitTabActivity.java

    r89a4508 r8ef81cf  
    7676        boolean generateAudio = true; 
    7777        boolean invertControlSignal = false; 
     78        boolean tiltSensorControl = false; 
    7879 
    7980 
     
    735736        // ################################################################ 
    736737 
     738        public void onCheckBoxTiltSensorControlClicked(View view) { 
     739 
     740                FragmentTabAdvanced fragmentAdvanced =  
     741                                (FragmentTabAdvanced) getSupportFragmentManager().findFragmentByTag( getTabFragmentAdvanced() ); 
     742 
     743                if (fragmentAdvanced != null) 
     744                        tiltSensorControl = fragmentAdvanced.checkBoxTiltSensorControl.isChecked(); 
     745 
     746 
     747        } // onCheckBoxTiltSensorControlClicked 
     748         
     749         
     750        // ################################################################ 
     751 
    737752        public void updateAdvancedOptions() { 
    738753 
Note: See TracChangeset for help on using the changeset viewer.