Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*/
package com.google.jetpackcamera.core.camera.postprocess

import android.content.ContentResolver
import android.net.Uri

/**
Expand All @@ -30,5 +31,5 @@ interface ImagePostProcessor {
*
* @param uri The [Uri] of the saved image that needs to be processed.
*/
suspend fun postProcessImage(uri: Uri)
suspend fun postProcessImage(uri: Uri, contentResolver: ContentResolver)
Comment thread
davidjiagoogle marked this conversation as resolved.
Comment thread
davidjiagoogle marked this conversation as resolved.
}
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ constructor(
}.also { outputFileResults ->
outputFileResults.savedUri?.let {
for ((key, value) in imagePostProcessors) {
value.get().postProcessImage(it)
value.get().postProcessImage(it, contentResolver)
Log.d(TAG, "Post processed image with $key")
}
Log.d(TAG, "Saved image to $it")
Expand Down
Loading