From 162a579f4854c4bf7e32aaef48a8e36c84864a60 Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Sat, 8 Dec 2012 20:55:20 -0700 Subject: [PATCH] Ready for a release --- res/layout/.empty | 0 src/org/woozle/penaltytimer/TimerButton.java | 11 ++--------- 2 files changed, 2 insertions(+), 9 deletions(-) create mode 100644 res/layout/.empty diff --git a/res/layout/.empty b/res/layout/.empty new file mode 100644 index 0000000..e69de29 diff --git a/src/org/woozle/penaltytimer/TimerButton.java b/src/org/woozle/penaltytimer/TimerButton.java index 4f29b54..0d5a068 100644 --- a/src/org/woozle/penaltytimer/TimerButton.java +++ b/src/org/woozle/penaltytimer/TimerButton.java @@ -10,7 +10,6 @@ import android.graphics.PorterDuffColorFilter; import android.graphics.PorterDuff; import android.os.SystemClock; import android.os.Vibrator; -import android.util.TypedValue; import java.util.*; public class TimerButton @@ -32,10 +31,8 @@ public class TimerButton public TimerButton(Context context, Button btn, long now) { vibr = (Vibrator)context.getSystemService(Context.VIBRATOR_SERVICE); - b = btn; + b = btn; b.setText("--:--"); - b.setTextSize(24); - b.setGravity(Gravity.CENTER); updateTimer = new Timer(); b.setOnClickListener(this); b.setOnLongClickListener(this); @@ -43,10 +40,6 @@ public class TimerButton this.now = now; } - public void setHeight(int height) { - b.setTextSize(TypedValue.COMPLEX_UNIT_SP, 24); - } - public long remaining() { if (running) { return duration - (now - startTime); @@ -79,7 +72,7 @@ public class TimerButton } public String str(long remain, boolean tenths) { - return bstr(remain, tenths) + " B"; + return bstr(remain, tenths); } public void set(long t) {