summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/com/android/camera/PhotoModule.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/com/android/camera/PhotoModule.java b/src/com/android/camera/PhotoModule.java
index ae5532d1d..fa5cbbe39 100644
--- a/src/com/android/camera/PhotoModule.java
+++ b/src/com/android/camera/PhotoModule.java
@@ -593,6 +593,7 @@ public class PhotoModule
mCameraId = getPreferredCameraId(mPreferences);
mContentResolver = mActivity.getContentResolver();
+ mApplicationContext = CameraApp.getContext();
// Surface texture is from camera screen nail and startPreview needs it.
// This must be done before startPreview.
@@ -934,8 +935,6 @@ public class PhotoModule
return;
}
- mApplicationContext = CameraApp.getContext();
-
// Initialize location service.
boolean recordLocation = RecordLocationPreference.get(mPreferences,
CameraSettings.KEY_RECORD_LOCATION);