Skip to content

Commit 2d42356

Browse files
committed
delete clock
1 parent ebb6cdb commit 2d42356

File tree

2 files changed

+0
-93
lines changed

2 files changed

+0
-93
lines changed

app/src/main/java/omegacentauri/mobi/tiltstopwatch/StopWatch.java

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -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
}

app/src/main/res/layout/activity_clock.xml

Lines changed: 0 additions & 73 deletions
This file was deleted.

0 commit comments

Comments
 (0)