diff options
author | Wu-cheng Li <wuchengli@google.com> | 2011-08-23 20:33:15 +0800 |
---|---|---|
committer | Wu-cheng Li <wuchengli@google.com> | 2011-08-23 20:33:15 +0800 |
commit | e8b7ae993fcd192aa3460540e7f3a66f601a93b1 (patch) | |
tree | 1031397ea6b0c7590626571f2e56e5b0096ae916 /src | |
parent | ff45331706e2fe361b4ff736d90b0ad4af0e7be9 (diff) | |
download | packages_apps_LegacyCamera-e8b7ae993fcd192aa3460540e7f3a66f601a93b1.zip packages_apps_LegacyCamera-e8b7ae993fcd192aa3460540e7f3a66f601a93b1.tar.gz packages_apps_LegacyCamera-e8b7ae993fcd192aa3460540e7f3a66f601a93b1.tar.bz2 |
Use public API Parameters.FOCUS_MODE_CONTINUOUS_PICTURE.
bug:5086125
Change-Id: I3e10e9a993804e60d77ba678c0fa664d9c13fa17
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/camera/Camera.java | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/com/android/camera/Camera.java b/src/com/android/camera/Camera.java index d54f09c..7c581e4 100644 --- a/src/com/android/camera/Camera.java +++ b/src/com/android/camera/Camera.java @@ -115,9 +115,6 @@ public class Camera extends ActivityBase implements View.OnClickListener, private static final int UPDATE_PARAM_PREFERENCE = 4; private static final int UPDATE_PARAM_ALL = -1; - // TODO: use public API after it is unhidden. - public static final String FOCUS_MODE_CONTINUOUS_PICTURE = "continuous-picture"; - // When setCameraParametersWhenIdle() is called, we accumulate the subsets // needed to be updated in mUpdateSet. private int mUpdateSet; @@ -830,7 +827,7 @@ public class Camera extends ActivityBase implements View.OnClickListener, Log.v(TAG, "mAutoFocusTime = " + mAutoFocusTime + "ms"); // Do a full autofocus if the scene is not focused in continuous // focus mode, - if (mFocusMode.equals(FOCUS_MODE_CONTINUOUS_PICTURE) && !focused) { + if (mFocusMode.equals(Parameters.FOCUS_MODE_CONTINUOUS_PICTURE) && !focused) { mContinuousFocusFail = true; setCameraParameters(UPDATE_PARAM_PREFERENCE); autoFocus(); |