OSDN Git Service

Update location indicator correctly
[android-x86/packages-apps-Gallery2.git] / src / com / android / camera / PhotoUI.java
index e2b7819..0949104 100644 (file)
@@ -306,16 +306,11 @@ public class PhotoUI implements PieListener,
             wbIndex = pref.getCurrentIndex();
         }
         mOnScreenIndicators.updateWBIndicator(wbIndex);
-        boolean location = false;
-        pref = group.findPreference(CameraSettings.KEY_RECORD_LOCATION);
-        if (pref != null) {
-            location = !(pref.getCurrentIndex() == 0);
-        }
+        boolean location = RecordLocationPreference.get(
+                prefs, mActivity.getContentResolver());
         mOnScreenIndicators.updateLocationIndicator(location);
     }
 
-
-
     public void setCameraState(int state) {
     }