summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Wang <jaywang@codeaurora.org>2015-05-22 15:47:01 -0700
committerSteve Kondik <steve@cyngn.com>2016-07-30 05:05:25 -0700
commit61c3ce971cad7a41817eb4347ddb36eb220563fa (patch)
treed4236b6e7e8c28e48373f5a2d25f553b046d94f4
parent848bd7088347e771a8b1bd93534480223d262c5e (diff)
downloadandroid_packages_apps_Snap-61c3ce971cad7a41817eb4347ddb36eb220563fa.zip
android_packages_apps_Snap-61c3ce971cad7a41817eb4347ddb36eb220563fa.tar.gz
android_packages_apps_Snap-61c3ce971cad7a41817eb4347ddb36eb220563fa.tar.bz2
SnapdragonCamera: Reduce number of countdown timer option
Reduce countdown timer option to "off, 2 secs, 5 secs and 10 secs" Change-Id: I7ee49c0b7b7e8649b6d128d58de3562549ec2644
-rw-r--r--src/com/android/camera/CountDownTimerPreference.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/camera/CountDownTimerPreference.java b/src/com/android/camera/CountDownTimerPreference.java
index 3d5f3a4..57820ac 100644
--- a/src/com/android/camera/CountDownTimerPreference.java
+++ b/src/com/android/camera/CountDownTimerPreference.java
@@ -23,7 +23,7 @@ import org.codeaurora.snapcam.R;
public class CountDownTimerPreference extends IconListPreference {
private static final int[] DURATIONS = {
- 0, 1, 2, 3, 4, 5, 10, 15, 20, 30, 60
+ 0, 2, 5, 10
};
public CountDownTimerPreference(Context context, AttributeSet attrs) {
super(context, attrs);
@@ -39,7 +39,7 @@ public class CountDownTimerPreference extends IconListPreference {
entries[0] = context.getString(R.string.setting_off); // Off
} else {
entries[i] = context.getResources()
- .getQuantityString(R.plurals.pref_camera_timer_entry, i,
+ .getQuantityString(R.plurals.pref_camera_timer_entry, DURATIONS[i],
DURATIONS[i]);
}
}