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/app/src/main/java/com/automattic/portkey/compose/frame/FrameSaveManager.kt b/app/src/main/java/com/automattic/portkey/compose/frame/FrameSaveManager.kt | |
index c0c21f4..b5d81da 100644 | |
--- a/app/src/main/java/com/automattic/portkey/compose/frame/FrameSaveManager.kt | |
+++ b/app/src/main/java/com/automattic/portkey/compose/frame/FrameSaveManager.kt | |
@@ -125,6 +125,10 @@ class FrameSaveManager(private val photoEditor: PhotoEditor) : CoroutineScope { | |
try { | |
// create ghost PhotoEditorView to be used for saving off-screen | |
val ghostPhotoEditorView = createGhostPhotoEditor(context, photoEditor.composedCanvas) | |
+ if (TEST_FLAG <= 2 ){ | |
+ TEST_FLAG++ |
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/app/src/main/java/com/automattic/portkey/compose/frame/FrameSaveManager.kt b/app/src/main/java/com/automattic/portkey/compose/frame/FrameSaveManager.kt | |
index ea8a255..5112808 100644 | |
--- a/app/src/main/java/com/automattic/portkey/compose/frame/FrameSaveManager.kt | |
+++ b/app/src/main/java/com/automattic/portkey/compose/frame/FrameSaveManager.kt | |
@@ -116,9 +116,11 @@ class FrameSaveManager(private val photoEditor: PhotoEditor) : CoroutineScope { | |
try { | |
// create ghost PhotoEditorView to be used for saving off-screen | |
val ghostPhotoEditorView = createGhostPhotoEditor(context, photoEditor.composedCanvas) | |
- throw Exception("THIS IS A TEST") | |
+ if (TEST_FLAG <= 1) { |
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/app/src/main/java/com/automattic/portkey/Portkey.kt b/app/src/main/java/com/automattic/portkey/Portkey.kt | |
index 7c85ea1..b1189b8 100644 | |
--- a/app/src/main/java/com/automattic/portkey/Portkey.kt | |
+++ b/app/src/main/java/com/automattic/portkey/Portkey.kt | |
@@ -109,6 +109,8 @@ class Portkey : Application() { | |
companion object { | |
const val TAG = "Portkey" | |
+ var testFlagStory1: Int = 0 | |
+ var testFlagStory2: Int = 0 |
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/app/src/main/java/com/automattic/portkey/MainActivity.kt b/app/src/main/java/com/automattic/portkey/MainActivity.kt | |
index db5eb17..1f63d82 100644 | |
--- a/app/src/main/java/com/automattic/portkey/MainActivity.kt | |
+++ b/app/src/main/java/com/automattic/portkey/MainActivity.kt | |
@@ -13,6 +13,7 @@ import com.automattic.portkey.compose.frame.FrameSaveService.StorySaveProcessSta | |
import com.automattic.portkey.compose.frame.FrameSaveService.StorySaveResult | |
import com.automattic.portkey.compose.story.StoryRepository | |
import com.automattic.portkey.intro.IntroActivity | |
+import com.automattic.portkey.util.KEY_STORY_INDEX | |
import com.automattic.portkey.util.KEY_STORY_SAVE_RESULT |
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/photoeditor/src/main/java/com/automattic/photoeditor/PhotoEditor.kt b/photoeditor/src/main/java/com/automattic/photoeditor/PhotoEditor.kt | |
index 4223f0c..17b2eec 100644 | |
--- a/photoeditor/src/main/java/com/automattic/photoeditor/PhotoEditor.kt | |
+++ b/photoeditor/src/main/java/com/automattic/photoeditor/PhotoEditor.kt | |
@@ -634,6 +634,8 @@ class PhotoEditor private constructor(builder: Builder) : | |
fun saveImageFromPhotoEditorViewAsLoopFrameFile(sequenceId: Int, photoEditorView: PhotoEditorView): File { | |
val localFile = FileUtils.getLoopFrameFile(context, false, sequenceId.toString()) | |
localFile.createNewFile() | |
+ // TODO REMOVE THIS TEST CODE | |
+ throw Exception("TEST EXCEPTION") |
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
package org.wordpress.aztec.ime; | |
/** | |
* Copyright (c) Facebook, Inc. and its affiliates. | |
* | |
* <p>This source code is licensed under the MIT license found in the LICENSE file in the root | |
* directory of this source tree. | |
*/ |
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
``` | |
:Sending Touch (ACTION_UP): 0:(671.28577,1415.2507) | |
// CRASH: null (pid 2587) | |
// Short Msg: java.util.ConcurrentModificationException | |
// Long Msg: java.util.ConcurrentModificationException | |
// Build Label: google/sdk_gphone_x86/generic_x86:8.0.0/OSR1.170901.056/4497355:userdebug/dev-keys | |
// Build Changelist: 4497355 | |
// Build Time: 1513035881000 | |
// java.util.ConcurrentModificationException | |
// at java.util.ArrayList.forEach(ArrayList.java:1268) |
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/WordPress/src/main/java/org/wordpress/android/ui/uploads/PostUploadHandler.java b/WordPress/src/main/java/org/wordpress/android/ui/uploads/PostUploadHandler.java | |
index 8b48004bf8..5bea84f858 100644 | |
--- a/WordPress/src/main/java/org/wordpress/android/ui/uploads/PostUploadHandler.java | |
+++ b/WordPress/src/main/java/org/wordpress/android/ui/uploads/PostUploadHandler.java | |
@@ -574,6 +574,8 @@ public class PostUploadHandler implements UploadHandler<PostModel> { | |
String errorMessage = mUiHelpers.getTextOfUiString(context, | |
UploadUtils.getErrorMessageResIdFromPostError(event.post.isPage(), event.error)); | |
String notificationMessage = UploadUtils.getErrorMessage(context, event.post, errorMessage, false); | |
+ mPostUploadNotifier.removePostInfoFromForegroundNotification(event.post, | |
+ mMediaStore.getMediaForPost(event.post)); |
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
2019-03-08 16:36:58.978 10255-10386/org.wordpress.android W/Adreno-GSL: <sharedmem_gpuobj_alloc:2318>: sharedmem_gpumem_alloc: mmap failed errno 12 Out of memory | |
2019-03-08 16:36:58.978 10255-10386/org.wordpress.android E/Adreno-GSL: <gsl_memory_alloc_pure:2202>: GSL MEM ERROR: kgsl_sharedmem_alloc ioctl failed. | |
2019-03-08 16:36:58.979 10255-10386/org.wordpress.android W/Adreno-GSL: <sharedmem_gpuobj_alloc:2318>: sharedmem_gpumem_alloc: mmap failed errno 12 Out of memory | |
2019-03-08 16:36:58.979 10255-10386/org.wordpress.android E/Adreno-GSL: <gsl_memory_alloc_pure:2202>: GSL MEM ERROR: kgsl_sharedmem_alloc ioctl failed. | |
2019-03-08 16:36:58.979 10255-10386/org.wordpress.android E/OpenGLRenderer: GL error: Out of memory! | |
2019-03-08 16:36:58.980 10255-10386/org.wordpress.android A/OpenGLRenderer: glTexImage2D error! GL_OUT_OF_MEMORY (0x505) | |
2019-03-08 16:36:59.370 12764-10386/? A/google-breakpad: Microdump skipped (uninteresting) | |
2019-03-08 16:36:59.468 10255-10386/org.wordpress.android W/google-breakpad: ### # |
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
def waitJitpack(group, module, hash) { | |
preBuild.dependsOn(tasks.create(name: "waitJitpack-${module}-${hash}") { thisTask -> | |
def url = "https://jitpack.io/${group.replace('.', '/')}/${module}/${hash}/${module}-${hash}.pom" | |
def backoffLimit = 7 | |
for (def backoffCount : (0..backoffLimit)) { | |
def connection = new URL(url).openConnection() as HttpURLConnection | |
def timeout = (2**backoffCount) * 5 * 1000; // exponential timeout | |
connection.setConnectTimeout(timeout) |