Ready for a release
This commit is contained in:
parent
4a46c159fc
commit
162a579f48
|
@ -10,7 +10,6 @@ import android.graphics.PorterDuffColorFilter;
|
||||||
import android.graphics.PorterDuff;
|
import android.graphics.PorterDuff;
|
||||||
import android.os.SystemClock;
|
import android.os.SystemClock;
|
||||||
import android.os.Vibrator;
|
import android.os.Vibrator;
|
||||||
import android.util.TypedValue;
|
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
||||||
public class TimerButton
|
public class TimerButton
|
||||||
|
@ -34,8 +33,6 @@ public class TimerButton
|
||||||
|
|
||||||
b = btn;
|
b = btn;
|
||||||
b.setText("--:--");
|
b.setText("--:--");
|
||||||
b.setTextSize(24);
|
|
||||||
b.setGravity(Gravity.CENTER);
|
|
||||||
updateTimer = new Timer();
|
updateTimer = new Timer();
|
||||||
b.setOnClickListener(this);
|
b.setOnClickListener(this);
|
||||||
b.setOnLongClickListener(this);
|
b.setOnLongClickListener(this);
|
||||||
|
@ -43,10 +40,6 @@ public class TimerButton
|
||||||
this.now = now;
|
this.now = now;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setHeight(int height) {
|
|
||||||
b.setTextSize(TypedValue.COMPLEX_UNIT_SP, 24);
|
|
||||||
}
|
|
||||||
|
|
||||||
public long remaining() {
|
public long remaining() {
|
||||||
if (running) {
|
if (running) {
|
||||||
return duration - (now - startTime);
|
return duration - (now - startTime);
|
||||||
|
@ -79,7 +72,7 @@ public class TimerButton
|
||||||
}
|
}
|
||||||
|
|
||||||
public String str(long remain, boolean tenths) {
|
public String str(long remain, boolean tenths) {
|
||||||
return bstr(remain, tenths) + " B";
|
return bstr(remain, tenths);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void set(long t) {
|
public void set(long t) {
|
||||||
|
|
Loading…
Reference in New Issue