Skip to content

Instantly share code, notes, and snippets.

@mzorz
Created August 7, 2020 21:18
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/852c06f673d3e27ecabab3532619c4a8 to your computer and use it in GitHub Desktop.
Save mzorz/852c06f673d3e27ecabab3532619c4a8 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 e53bf32a..f7b1b67b 100644
--- a/photoeditor/src/main/java/com/automattic/photoeditor/PhotoEditor.kt
+++ b/photoeditor/src/main/java/com/automattic/photoeditor/PhotoEditor.kt
@@ -763,6 +763,7 @@ class PhotoEditor private constructor(builder: Builder) :
.setClearViewsEnabled(true)
.setTransparencyEnabled(false)
.build()
+ throw Exception("THIS IS A TEST")
FileUtils.saveViewToFile(localFile.absolutePath, saveSettings, photoEditorView, cropSize)
return localFile
}
diff --git a/photoeditor/src/main/java/com/automattic/photoeditor/PhotoEditor.kt b/photoeditor/src/main/java/com/automattic/photoeditor/PhotoEditor.kt
index e53bf32a..f7b1b67b 100644
--- a/photoeditor/src/main/java/com/automattic/photoeditor/PhotoEditor.kt
+++ b/photoeditor/src/main/java/com/automattic/photoeditor/PhotoEditor.kt
@@ -763,6 +763,7 @@ class PhotoEditor private constructor(builder: Builder) :
.setClearViewsEnabled(true)
.setTransparencyEnabled(false)
.build()
+ throw Exception("THIS IS A TEST")
FileUtils.saveViewToFile(localFile.absolutePath, saveSettings, photoEditorView, cropSize)
return localFile
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment