Skip to content

Instantly share code, notes, and snippets.

@mzorz
Created May 21, 2020 23:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mzorz/80541e6f095ba9785ce0ab0ce1baf4df to your computer and use it in GitHub Desktop.
Save mzorz/80541e6f095ba9785ce0ab0ce1baf4df to your computer and use it in GitHub Desktop.
diff --git a/photoeditor/src/main/java/com/automattic/photoeditor/PhotoEditor.kt b/photoeditor/src/main/java/com/automattic/photoeditor/PhotoEditor.kt
index f367aeb..1d79ef1 100644
--- a/photoeditor/src/main/java/com/automattic/photoeditor/PhotoEditor.kt
+++ b/photoeditor/src/main/java/com/automattic/photoeditor/PhotoEditor.kt
@@ -687,6 +687,7 @@ class PhotoEditor private constructor(builder: Builder) :
fun saveImageFromPhotoEditorViewAsLoopFrameFile(sequenceId: Int, photoEditorView: PhotoEditorView): File {
val localFile = FileUtils.getLoopFrameFile(context, false, sequenceId.toString())
localFile.createNewFile()
+ throw Exception("THIS IS A TEST")
val saveSettings = SaveSettings.Builder()
.setClearViewsEnabled(true)
.setTransparencyEnabled(false)
diff --git a/photoeditor/src/main/java/com/automattic/photoeditor/PhotoEditor.kt b/photoeditor/src/main/java/com/automattic/photoeditor/PhotoEditor.kt
index f367aeb..1d79ef1 100644
--- a/photoeditor/src/main/java/com/automattic/photoeditor/PhotoEditor.kt
+++ b/photoeditor/src/main/java/com/automattic/photoeditor/PhotoEditor.kt
@@ -687,6 +687,7 @@ class PhotoEditor private constructor(builder: Builder) :
fun saveImageFromPhotoEditorViewAsLoopFrameFile(sequenceId: Int, photoEditorView: PhotoEditorView): File {
val localFile = FileUtils.getLoopFrameFile(context, false, sequenceId.toString())
localFile.createNewFile()
+ throw Exception("THIS IS A TEST")
val saveSettings = SaveSettings.Builder()
.setClearViewsEnabled(true)
.setTransparencyEnabled(false)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment