summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/com/android/camera/ui/MoreSettingPopup.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/camera/ui/MoreSettingPopup.java b/src/com/android/camera/ui/MoreSettingPopup.java
index 5900058df..9c83c0190 100644
--- a/src/com/android/camera/ui/MoreSettingPopup.java
+++ b/src/com/android/camera/ui/MoreSettingPopup.java
@@ -82,7 +82,7 @@ public class MoreSettingPopup extends AbstractSettingPopup
@Override
public View getView(int position, View convertView, ViewGroup parent) {
- if (convertView != null) return convertView;
+ if (convertView != null && (position == (Integer) convertView.getTag())) return convertView;
ListPreference pref = mListItem.get(position);
@@ -90,6 +90,7 @@ public class MoreSettingPopup extends AbstractSettingPopup
InLineSettingItem view = (InLineSettingItem)
mInflater.inflate(viewLayoutId, parent, false);
+ view.setTag(position);
view.initialize(pref); // no init for restore one
view.setSettingChangedListener(MoreSettingPopup.this);
if (position >= 0 && position < mEnabled.length) {