Source/sources/com/google/appinventor/components/runtime/Canvas.java
private java.lang.String saveFile(java.io.File r10, android.graphics.Bitmap.CompressFormat r11, java.lang.String r12) {
        /*
            r9 = this;
            r7 = 1
            r8 = 0
            r3 = 0
            java.io.FileOutputStream r2 = new java.io.FileOutputStream     // Catch:{ FileNotFoundException -> 0x0032, IOException -> 0x0058 }
            r2.<init>(r10)     // Catch:{ FileNotFoundException -> 0x0032, IOException -> 0x0058 }
            com.google.appinventor.components.runtime.Canvas$CanvasView r4 = r9.view     // Catch:{ FileNotFoundException -> 0x0032, IOException -> 0x0058 }
            android.graphics.Bitmap r4 = r4.completeCache     // Catch:{ FileNotFoundException -> 0x0032, IOException -> 0x0058 }
            if (r4 != 0) goto L_0x0026
            com.google.appinventor.components.runtime.Canvas$CanvasView r4 = r9.view     // Catch:{ FileNotFoundException -> 0x0032, IOException -> 0x0058 }
            android.graphics.Bitmap r0 = r4.buildCache()     // Catch:{ FileNotFoundException -> 0x0032, IOException -> 0x0058 }
        L_0x0016:
            r4 = 100
            boolean r3 = r0.compress(r11, r4, r2)     // Catch:{ all -> 0x002d }
            r2.close()     // Catch:{ FileNotFoundException -> 0x0032, IOException -> 0x0058 }
            if (r3 == 0) goto L_0x0049
            java.lang.String r4 = r10.getAbsolutePath()     // Catch:{ FileNotFoundException -> 0x0032, IOException -> 0x0058 }
        L_0x0025:
            return r4
        L_0x0026:
            com.google.appinventor.components.runtime.Canvas$CanvasView r4 = r9.view     // Catch:{ FileNotFoundException -> 0x0032, IOException -> 0x0058 }
            android.graphics.Bitmap r0 = r4.completeCache     // Catch:{ FileNotFoundException -> 0x0032, IOException -> 0x0058 }
            goto L_0x0016
        L_0x002d:
            r4 = move-exception
            r2.close()     // Catch:{ FileNotFoundException -> 0x0032, IOException -> 0x0058 }
            throw r4     // Catch:{ FileNotFoundException -> 0x0032, IOException -> 0x0058 }
        L_0x0032:
            r1 = move-exception
            com.google.appinventor.components.runtime.ComponentContainer r4 = r9.container
            com.google.appinventor.components.runtime.Form r4 = r4.$form()
            r5 = 707(0x2c3, float:9.91E-43)
            java.lang.Object[] r6 = new java.lang.Object[r7]
            java.lang.String r7 = r10.getAbsolutePath()
            r6[r8] = r7
            r4.dispatchErrorOccurredEvent(r9, r12, r5, r6)
        L_0x0046:
            java.lang.String r4 = ""
            goto L_0x0025
        L_0x0049:
            com.google.appinventor.components.runtime.ComponentContainer r4 = r9.container     // Catch:{ FileNotFoundException -> 0x0032, IOException -> 0x0058 }
            com.google.appinventor.components.runtime.Form r4 = r4.$form()     // Catch:{ FileNotFoundException -> 0x0032, IOException -> 0x0058 }
            r5 = 1001(0x3e9, float:1.403E-42)
            r6 = 0
            java.lang.Object[] r6 = new java.lang.Object[r6]     // Catch:{ FileNotFoundException -> 0x0032, IOException -> 0x0058 }
            r4.dispatchErrorOccurredEvent(r9, r12, r5, r6)     // Catch:{ FileNotFoundException -> 0x0032, IOException -> 0x0058 }
            goto L_0x0046
        L_0x0058:
            r1 = move-exception
            com.google.appinventor.components.runtime.ComponentContainer r4 = r9.container
            com.google.appinventor.components.runtime.Form r4 = r4.$form()
            r5 = 708(0x2c4, float:9.92E-43)
            java.lang.Object[] r6 = new java.lang.Object[r7]
            java.lang.String r7 = r1.getMessage()
            r6[r8] = r7
            r4.dispatchErrorOccurredEvent(r9, r12, r5, r6)
            goto L_0x0046
        */
        throw new UnsupportedOperationException("Method not decompiled: com.google.appinventor.components.runtime.Canvas.saveFile(java.io.File, android.graphics.Bitmap$CompressFormat, java.lang.String):java.lang.String");
    }
/* Code decompiled incorrectly, please refer to instructions dump. */
Code decompiled incorrectly, please refer to instructions dump.
Code decompiled incorrectly please refer to instructions dump .
private java.lang.String saveFile(java.io.File r10, android.graphics.Bitmap.CompressFormat r11, java.lang.String r12) {
        /*
            r9 = this;
            r7 = 1
            r8 = 0
            r3 = 0
            java.io.FileOutputStream r2 = new java.io.FileOutputStream     // Catch:{ FileNotFoundException -> 0x0032, IOException -> 0x0058 }
            r2.<init>(r10)     // Catch:{ FileNotFoundException -> 0x0032, IOException -> 0x0058 }
            com.google.appinventor.components.runtime.Canvas$CanvasView r4 = r9.view     // Catch:{ FileNotFoundException -> 0x0032, IOException -> 0x0058 }
            android.graphics.Bitmap r4 = r4.completeCache     // Catch:{ FileNotFoundException -> 0x0032, IOException -> 0x0058 }
            if (r4 != 0) goto L_0x0026
            com.google.appinventor.components.runtime.Canvas$CanvasView r4 = r9.view     // Catch:{ FileNotFoundException -> 0x0032, IOException -> 0x0058 }
            android.graphics.Bitmap r0 = r4.buildCache()     // Catch:{ FileNotFoundException -> 0x0032, IOException -> 0x0058 }
        L_0x0016:
            r4 = 100
            boolean r3 = r0.compress(r11, r4, r2)     // Catch:{ all -> 0x002d }
            r2.close()     // Catch:{ FileNotFoundException -> 0x0032, IOException -> 0x0058 }
            if (r3 == 0) goto L_0x0049
            java.lang.String r4 = r10.getAbsolutePath()     // Catch:{ FileNotFoundException -> 0x0032, IOException -> 0x0058 }
        L_0x0025:
            return r4
        L_0x0026:
            com.google.appinventor.components.runtime.Canvas$CanvasView r4 = r9.view     // Catch:{ FileNotFoundException -> 0x0032, IOException -> 0x0058 }
            android.graphics.Bitmap r0 = r4.completeCache     // Catch:{ FileNotFoundException -> 0x0032, IOException -> 0x0058 }
            goto L_0x0016
        L_0x002d:
            r4 = move-exception
            r2.close()     // Catch:{ FileNotFoundException -> 0x0032, IOException -> 0x0058 }
            throw r4     // Catch:{ FileNotFoundException -> 0x0032, IOException -> 0x0058 }
        L_0x0032:
            r1 = move-exception
            com.google.appinventor.components.runtime.ComponentContainer r4 = r9.container
            com.google.appinventor.components.runtime.Form r4 = r4.$form()
            r5 = 707(0x2c3, float:9.91E-43)
            java.lang.Object[] r6 = new java.lang.Object[r7]
            java.lang.String r7 = r10.getAbsolutePath()
            r6[r8] = r7
            r4.dispatchErrorOccurredEvent(r9, r12, r5, r6)
        L_0x0046:
            java.lang.String r4 = ""
            goto L_0x0025
        L_0x0049:
            com.google.appinventor.components.runtime.ComponentContainer r4 = r9.container     // Catch:{ FileNotFoundException -> 0x0032, IOException -> 0x0058 }
            com.google.appinventor.components.runtime.Form r4 = r4.$form()     // Catch:{ FileNotFoundException -> 0x0032, IOException -> 0x0058 }
            r5 = 1001(0x3e9, float:1.403E-42)
            r6 = 0
            java.lang.Object[] r6 = new java.lang.Object[r6]     // Catch:{ FileNotFoundException -> 0x0032, IOException -> 0x0058 }
            r4.dispatchErrorOccurredEvent(r9, r12, r5, r6)     // Catch:{ FileNotFoundException -> 0x0032, IOException -> 0x0058 }
            goto L_0x0046
        L_0x0058:
            r1 = move-exception
            com.google.appinventor.components.runtime.ComponentContainer r4 = r9.container
            com.google.appinventor.components.runtime.Form r4 = r4.$form()
            r5 = 708(0x2c4, float:9.92E-43)
            java.lang.Object[] r6 = new java.lang.Object[r7]
            java.lang.String r7 = r1.getMessage()
            r6[r8] = r7
            r4.dispatchErrorOccurredEvent(r9, r12, r5, r6)
            goto L_0x0046
        */
        throw new UnsupportedOperationException("Method not decompiled: com.google.appinventor.components.runtime.Canvas.saveFile(java.io.File, android.graphics.Bitmap$CompressFormat, java.lang.String):java.lang.String");
    }
private java . lang . String saveFile ( java . io . File r10 , android . graphics . Bitmap . CompressFormat r11 , java . lang . String r12 ) { /*
            r9 = this;
            r7 = 1
            r8 = 0
            r3 = 0
            java.io.FileOutputStream r2 = new java.io.FileOutputStream     // Catch:{ FileNotFoundException -> 0x0032, IOException -> 0x0058 }
            r2.<init>(r10)     // Catch:{ FileNotFoundException -> 0x0032, IOException -> 0x0058 }
            com.google.appinventor.components.runtime.Canvas$CanvasView r4 = r9.view     // Catch:{ FileNotFoundException -> 0x0032, IOException -> 0x0058 }
            android.graphics.Bitmap r4 = r4.completeCache     // Catch:{ FileNotFoundException -> 0x0032, IOException -> 0x0058 }
            if (r4 != 0) goto L_0x0026
            com.google.appinventor.components.runtime.Canvas$CanvasView r4 = r9.view     // Catch:{ FileNotFoundException -> 0x0032, IOException -> 0x0058 }
            android.graphics.Bitmap r0 = r4.buildCache()     // Catch:{ FileNotFoundException -> 0x0032, IOException -> 0x0058 }
        L_0x0016:
            r4 = 100
            boolean r3 = r0.compress(r11, r4, r2)     // Catch:{ all -> 0x002d }
            r2.close()     // Catch:{ FileNotFoundException -> 0x0032, IOException -> 0x0058 }
            if (r3 == 0) goto L_0x0049
            java.lang.String r4 = r10.getAbsolutePath()     // Catch:{ FileNotFoundException -> 0x0032, IOException -> 0x0058 }
        L_0x0025:
            return r4
        L_0x0026:
            com.google.appinventor.components.runtime.Canvas$CanvasView r4 = r9.view     // Catch:{ FileNotFoundException -> 0x0032, IOException -> 0x0058 }
            android.graphics.Bitmap r0 = r4.completeCache     // Catch:{ FileNotFoundException -> 0x0032, IOException -> 0x0058 }
            goto L_0x0016
        L_0x002d:
            r4 = move-exception
            r2.close()     // Catch:{ FileNotFoundException -> 0x0032, IOException -> 0x0058 }
            throw r4     // Catch:{ FileNotFoundException -> 0x0032, IOException -> 0x0058 }
        L_0x0032:
            r1 = move-exception
            com.google.appinventor.components.runtime.ComponentContainer r4 = r9.container
            com.google.appinventor.components.runtime.Form r4 = r4.$form()
            r5 = 707(0x2c3, float:9.91E-43)
            java.lang.Object[] r6 = new java.lang.Object[r7]
            java.lang.String r7 = r10.getAbsolutePath()
            r6[r8] = r7
            r4.dispatchErrorOccurredEvent(r9, r12, r5, r6)
        L_0x0046:
            java.lang.String r4 = ""
            goto L_0x0025
        L_0x0049:
            com.google.appinventor.components.runtime.ComponentContainer r4 = r9.container     // Catch:{ FileNotFoundException -> 0x0032, IOException -> 0x0058 }
            com.google.appinventor.components.runtime.Form r4 = r4.$form()     // Catch:{ FileNotFoundException -> 0x0032, IOException -> 0x0058 }
            r5 = 1001(0x3e9, float:1.403E-42)
            r6 = 0
            java.lang.Object[] r6 = new java.lang.Object[r6]     // Catch:{ FileNotFoundException -> 0x0032, IOException -> 0x0058 }
            r4.dispatchErrorOccurredEvent(r9, r12, r5, r6)     // Catch:{ FileNotFoundException -> 0x0032, IOException -> 0x0058 }
            goto L_0x0046
        L_0x0058:
            r1 = move-exception
            com.google.appinventor.components.runtime.ComponentContainer r4 = r9.container
            com.google.appinventor.components.runtime.Form r4 = r4.$form()
            r5 = 708(0x2c4, float:9.92E-43)
            java.lang.Object[] r6 = new java.lang.Object[r7]
            java.lang.String r7 = r1.getMessage()
            r6[r8] = r7
            r4.dispatchErrorOccurredEvent(r9, r12, r5, r6)
            goto L_0x0046
        */ throw new UnsupportedOperationException ( "Method not decompiled: com.google.appinventor.components.runtime.Canvas.saveFile(java.io.File, android.graphics.Bitmap$CompressFormat, java.lang.String):java.lang.String" ) ; }
Code decompiled incorrectly, please refer to instructions dump.
Code decompiled incorrectly please refer to instructions dump .