summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/com/android/camera/CameraActivity.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/com/android/camera/CameraActivity.java b/src/com/android/camera/CameraActivity.java
index e1e80d2d9..3093b2584 100644
--- a/src/com/android/camera/CameraActivity.java
+++ b/src/com/android/camera/CameraActivity.java
@@ -1705,8 +1705,12 @@ public class CameraActivity extends QuickActivity
private boolean shouldUseNoOpLocation () {
String callingPackage = getCallingPackage();
if (callingPackage == null) {
- // Activity not started through startActivityForResult.
- return false;
+ if (isCaptureIntent()) {
+ // Activity not started through startActivityForResult.
+ return true;
+ } else {
+ callingPackage = mAppContext.getPackageName();
+ }
}
PackageInfo packageInfo = null;
try {