summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/ModePicker.java
diff options
context:
space:
mode:
authorWu-cheng Li <wuchengli@google.com>2011-09-20 15:48:37 +0800
committerWu-cheng Li <wuchengli@google.com>2011-09-20 15:48:37 +0800
commit3cd761b5888b54683e63db051ca9f38606dc1ecc (patch)
tree708fb0bac0de038189ade770250913b7f32091e7 /src/com/android/camera/ModePicker.java
parent23a5e416ca6564cafcc80f7ee7f822e1dbe4d16b (diff)
downloadLegacyCamera-3cd761b5888b54683e63db051ca9f38606dc1ecc.zip
LegacyCamera-3cd761b5888b54683e63db051ca9f38606dc1ecc.tar.gz
LegacyCamera-3cd761b5888b54683e63db051ca9f38606dc1ecc.tar.bz2
Set the default of the mode picker to camera mode.
ModePicker.setEnabled needs to use mCurrentMode. Set the default to a valid value so there is no dependency between setEnabled and setCurrentMode. bug:5344666 Change-Id: I82eb966994158733cfda72e3bda08fa57f7b0d45
Diffstat (limited to 'src/com/android/camera/ModePicker.java')
-rw-r--r--src/com/android/camera/ModePicker.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/com/android/camera/ModePicker.java b/src/com/android/camera/ModePicker.java
index a89764b..cc17f9b 100644
--- a/src/com/android/camera/ModePicker.java
+++ b/src/com/android/camera/ModePicker.java
@@ -16,11 +16,9 @@
package com.android.camera;
-import com.android.camera.Util;
import com.android.camera.ui.RotateImageView;
import android.content.Context;
-import android.graphics.Color;
import android.graphics.PorterDuff;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
@@ -60,7 +58,7 @@ public class ModePicker extends RelativeLayout implements View.OnClickListener {
private View mCurrentModeBar;
private View mSelectedView;
- private int mCurrentMode = -1;
+ private int mCurrentMode = 0;
private Animation mFadeIn, mFadeOut;
public ModePicker(Context context, AttributeSet attrs) {