diff options
| author | Kerong Sui <ksui@codeaurora.org> | 2013-08-30 16:08:49 +0800 |
|---|---|---|
| committer | Steve Kondik <shade@chemlab.org> | 2013-10-01 03:32:39 -0700 |
| commit | fe3360ade4f9d48794a5adf759907123797eeb92 (patch) | |
| tree | 10389e0d0498e4469e1e036bc0e2ba0cd0196020 | |
| parent | 593f1735c0d380b7be237fe468ad8f343d767935 (diff) | |
| download | android_packages_apps_Gallery2-fe3360ade4f9d48794a5adf759907123797eeb92.tar.gz android_packages_apps_Gallery2-fe3360ade4f9d48794a5adf759907123797eeb92.tar.bz2 android_packages_apps_Gallery2-fe3360ade4f9d48794a5adf759907123797eeb92.zip | |
Gallery2: fix the display error of camera manu when rotate it
including: manu of native camera and camcoder
Crs-fixed: 529692 532833
Change-Id: I302358fcf9fbde722d8b032b89ee6c0d39d76a8b
| -rw-r--r-- | src/com/android/camera/ui/MoreSettingPopup.java | 3 |
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) { |
