Changeset e69f448 in orbit for android


Ignore:
Timestamp:
12/28/13 02:06:52 (6 years ago)
Author:
Steve Castellotti <sc@…>
Branches:
master, Servo
Children:
fcd95ab
Parents:
fa8ffb5
Message:
  • update progressBars on Advanced tab when headset is disconnected
File:
1 edited

Legend:

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

    r076a101 re69f448  
    805805                progressBarSignal.setProgress(eegSignal); 
    806806                progressBarPower.setProgress(eegPower); 
     807                 
     808                 
     809                String id = ((OrbitTabActivity)getActivity()).getTabFragmentAdvanced(); 
     810 
     811                FragmentTabAdvanced fragmentAdvanced =  
     812                                (FragmentTabAdvanced) getFragmentManager().findFragmentByTag(id); 
     813 
     814                if (fragmentAdvanced != null) { 
     815                        fragmentAdvanced.progressBarAttention.setProgress(eegAttention); 
     816                        fragmentAdvanced.progressBarMeditation.setProgress(eegMeditation); 
     817                        fragmentAdvanced.progressBarSignal.setProgress(eegSignal); 
     818                        fragmentAdvanced.progressBarPower.setProgress(eegPower); 
     819                } 
     820                 
     821                 
    807822                setButtonText(R.id.buttonConnect, "Connect"); 
    808823 
Note: See TracChangeset for help on using the changeset viewer.