summaryrefslogtreecommitdiff
path: root/src/com/android/camera/PanoCaptureModule.java
diff options
context:
space:
mode:
authorJulian Veit <claymore1298@gmail.com>2022-03-20 00:06:45 +0100
committerJulian Veit <claymore1298@gmail.com>2022-03-20 00:06:45 +0100
commitd250e4a60f3b6219c6925534629eee12834a92b8 (patch)
tree52fb90369927e24dc962b6ec283f6a3f710f7a6c /src/com/android/camera/PanoCaptureModule.java
parentef111dceb9e3fce395bff4f6a4ef1591c701e80c (diff)
parent8c444160bd565319468cce5bfdcfc11d20e8b7cb (diff)
Merge branch 'lineage-18.1' of https://github.com/LineageOS/android_packages_apps_Snap into HEADHEADs12.1
Change-Id: Ia09760085480a6a028c8969f16f503070ab816e5
Diffstat (limited to 'src/com/android/camera/PanoCaptureModule.java')
-rwxr-xr-x[-rw-r--r--]src/com/android/camera/PanoCaptureModule.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/com/android/camera/PanoCaptureModule.java b/src/com/android/camera/PanoCaptureModule.java
index b333158d9..cea752b25 100644..100755
--- a/src/com/android/camera/PanoCaptureModule.java
+++ b/src/com/android/camera/PanoCaptureModule.java
@@ -494,7 +494,9 @@ public class PanoCaptureModule implements CameraModule, PhotoController {
Log.e(TAG, "Cannot set exif for " + filepath, e);
Storage.writeFile(filepath, jpegData);
}
- return Storage.addImage(mActivity, filepath);
+ int jpegLength = (int) (new File(filepath).length());
+ return Storage.addImage(mContentResolver, filename, timeTaken, loc, orientation,
+ jpegLength, filepath, width, height, LocalData.MIME_TYPE_JPEG);
}
return null;
}
@@ -684,6 +686,11 @@ public class PanoCaptureModule implements CameraModule, PhotoController {
}
@Override
+ public void onSwitchSavePath() {
+
+ }
+
+ @Override
public void waitingLocationPermissionResult(boolean waiting) {
}