@@ -48,7 +48,6 @@ public class StopWatch extends ShowTime implements SensorEventListener {
4848 {R .id .settings , R .drawable .settings },
4949 {R .id .menu , R .drawable .menu }
5050 };
51- private boolean volumeControl ;
5251 private SensorManager sensorManager ;
5352 private Sensor gravity ;
5453
@@ -109,18 +108,7 @@ protected void onResume() {
109108
110109 sensorManager .registerListener (this , gravity , SensorManager .SENSOR_DELAY_FASTEST );
111110
112- volumeControl = options .getBoolean (Options .PREF_VOLUME , true );
113111 updateButtons ();
114- if (options .getBoolean (Options .PREF_SWIPE , true ) && !options .getBoolean (Options .PREF_STOPWATCH_SWIPE_INFO , false )) {
115- SharedPreferences .Editor ed = options .edit ();
116- ed .putBoolean (Options .PREF_STOPWATCH_SWIPE_INFO , true );
117- MyChrono .apply (ed );
118- if (hasTouch ())
119- timedMessage ("StopWatch Mode" , "Swipe on time or press menu button to switch to clock mode" , 5200 );
120- else
121- timedMessage ("StopWatch Mode" , "Press up/down or use menu button to switch to clock mode" , 5200 );
122- // Toast.makeText(this, "StopWatch mode: Swipe time to switch to clock", Toast.LENGTH_LONG).show();
123- }
124112 }
125113
126114 void updateButtons () {
@@ -254,14 +242,6 @@ void pressFirstButton() {
254242 updateButtons ();
255243 }
256244
257- public void onButtonStart (View v ) {
258- pressFirstButton ();
259- }
260-
261- public void onButtonReset (View v ) {
262- pressSecondButton ();
263- }
264-
265245 public boolean isFirstButton (int keyCode ) {
266246 return false ;
267247 }
0 commit comments