From c6fc1b196189c623650891427815db75f37b8fe8 Mon Sep 17 00:00:00 2001 From: Nils Vogels Date: Mon, 16 Sep 2013 01:28:45 +0200 Subject: [PATCH] Adding stopmotion capability by expanding Picture Delay and Pictures to take in one run --- src/com/dozingcatsoftware/cameratimer/MainActivity.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/com/dozingcatsoftware/cameratimer/MainActivity.java b/src/com/dozingcatsoftware/cameratimer/MainActivity.java index 548dccf..7ee010e 100644 --- a/src/com/dozingcatsoftware/cameratimer/MainActivity.java +++ b/src/com/dozingcatsoftware/cameratimer/MainActivity.java @@ -45,7 +45,7 @@ public class MainActivity extends Activity implements Camera.PictureCallback, Camera.AutoFocusCallback, OnShutterButtonListener { - static final List DELAY_DURATIONS = Arrays.asList(0, 5, 15, 30); + static final List DELAY_DURATIONS = Arrays.asList(0, 5, 15, 30, 60, 120, 300, 600); static final int DEFAULT_DELAY = 5; static final String DELAY_PREFERENCES_KEY = "delay"; int pictureDelay = DEFAULT_DELAY; @@ -335,7 +335,7 @@ void updateFlashMode(int mode) { } public void toggleNumberOfPictures() { - picturesToTake = (picturesToTake==1) ? 4 : 1; + picturesToTake = (picturesToTake==1) ? 100 : 1; numberOfPicturesButton.setText(picturesToTake==1 ? R.string.singleImageButtonLabel : R.string.multiImageButtonLabel); } @@ -433,4 +433,4 @@ public void onShutterButtonFocus(boolean pressed) { public void onShutterButtonClick() { savePicture(); } -} \ No newline at end of file +}