diff options
author | Wu-cheng Li <wuchengli@google.com> | 2011-09-15 06:43:12 +0800 |
---|---|---|
committer | Wu-cheng Li <wuchengli@google.com> | 2011-09-15 06:49:32 +0800 |
commit | 15d9a599aa3d354a89c7dcac7f03aa458f3a4158 (patch) | |
tree | 05b0353964428fb430f5d915b105d158ce182c59 /src | |
parent | c24192e3b9a3d4f6e5e77e408fd4d91333b1275e (diff) | |
download | LegacyCamera-15d9a599aa3d354a89c7dcac7f03aa458f3a4158.zip LegacyCamera-15d9a599aa3d354a89c7dcac7f03aa458f3a4158.tar.gz LegacyCamera-15d9a599aa3d354a89c7dcac7f03aa458f3a4158.tar.bz2 |
Fix effect selection is not reset in setting popup.
bug:5280921
Change-Id: Iaf05eb162edf77036ec9e161b64d96696e32b4e9
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/camera/ui/BasicSettingPopup.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/com/android/camera/ui/BasicSettingPopup.java b/src/com/android/camera/ui/BasicSettingPopup.java index 6991bae..aca88ca 100644 --- a/src/com/android/camera/ui/BasicSettingPopup.java +++ b/src/com/android/camera/ui/BasicSettingPopup.java @@ -21,6 +21,7 @@ import com.android.camera.R; import android.content.Context; import android.util.AttributeSet; +import android.util.Log; import android.view.View; import android.widget.AdapterView; import android.widget.ListView; @@ -34,6 +35,7 @@ import java.util.HashMap; // daylight, incandescent, etc). public class BasicSettingPopup extends AbstractSettingPopup implements AdapterView.OnItemClickListener { + private final String TAG = "BasicSettingPopup"; private IconListPreference mPreference; private Listener mListener; @@ -81,8 +83,10 @@ public class BasicSettingPopup extends AbstractSettingPopup implements int index = mPreference.findIndexOfValue(mPreference.getValue()); if (index != -1) { ((ListView) mSettingList).setItemChecked(index, true); + } else { + Log.e(TAG, "Invalid preference value."); + mPreference.print(); } - } public void setSettingChangedListener(Listener listener) { |