Created
April 29, 2021 19:47
-
-
Save mzorz/41d6f80f2395105fff6da6328b190ff5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/stories/src/main/java/com/wordpress/stories/compose/frame/FrameSaveManager.kt b/stories/src/main/java/com/wordpress/stories/compose/frame/FrameSaveManager.kt | |
index 083f820d..a36b3c6e 100644 | |
--- a/stories/src/main/java/com/wordpress/stories/compose/frame/FrameSaveManager.kt | |
+++ b/stories/src/main/java/com/wordpress/stories/compose/frame/FrameSaveManager.kt | |
@@ -260,6 +260,9 @@ class FrameSaveManager( | |
} | |
override fun onProgress(progress: Double) { | |
saveProgressListener?.onFrameSaveProgress(frameIndex, frame, progress) | |
+ if (progress > 0.7f) { | |
+ throw Exception("THIS IS A TEST") | |
+ } | |
} | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/stories/src/main/java/com/wordpress/stories/compose/frame/FrameSaveManager.kt b/stories/src/main/java/com/wordpress/stories/compose/frame/FrameSaveManager.kt | |
index 083f820d..a36b3c6e 100644 | |
--- a/stories/src/main/java/com/wordpress/stories/compose/frame/FrameSaveManager.kt | |
+++ b/stories/src/main/java/com/wordpress/stories/compose/frame/FrameSaveManager.kt | |
@@ -260,6 +260,9 @@ class FrameSaveManager( | |
} | |
override fun onProgress(progress: Double) { | |
saveProgressListener?.onFrameSaveProgress(frameIndex, frame, progress) | |
+ if (progress > 0.7f) { | |
+ throw Exception("THIS IS A TEST") | |
+ } | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment