Skip to content

Commit

Permalink
Add EoY screenshot failure logs (#3133)
Browse files Browse the repository at this point in the history
  • Loading branch information
MiSikora authored Oct 30, 2024
1 parent 77ba412 commit fa6380c
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ import androidx.core.graphics.drawable.toBitmap
import androidx.core.graphics.scale
import au.com.shiftyjelly.pocketcasts.endofyear.ui.backgroundColor
import au.com.shiftyjelly.pocketcasts.models.to.Story
import au.com.shiftyjelly.pocketcasts.utils.log.LogBuffer
import au.com.shiftyjelly.pocketcasts.utils.log.LogBuffer.TAG_CRASH
import dev.shreyaspatil.capturable.controller.CaptureController
import dev.shreyaspatil.capturable.controller.rememberCaptureController
import java.io.File
Expand Down Expand Up @@ -117,7 +119,8 @@ internal fun rememberStoryCaptureController(): StoryCaptureController {
}
file
}
}.getOrNull()
}.onFailure { LogBuffer.e(TAG_CRASH, it, "Failed to create a screenshot") }
.getOrNull()
_isSharing = false
return file
}
Expand Down

0 comments on commit fa6380c

Please sign in to comment.