A cheap attempt at a native Bluesky client for Android

ImageCompressor: Fix incorrect image dimensions

The width and height of a compressed image were being taken from the original, uncompressed bitmap. This resulted in incorrect dimensions being stored.

The fix is to decode the compressed `outputBytes` into a new `Bitmap` and read the dimensions from that instead.

+4 -2
+4 -2
app/src/main/java/industries/geesawra/monarch/datalayer/Compressor.kt
··· 105 105 compressFormat != Bitmap.CompressFormat.PNG 106 106 ) 107 107 108 + val ob = BitmapFactory.decodeByteArray(outputBytes, 0, outputBytes.size) 109 + 108 110 CompressedImage( 109 111 data = outputBytes, 110 - width = bitmap.width.toLong(), 111 - height = bitmap.height.toLong() 112 + width = ob.width.toLong(), 113 + height = ob.height.toLong() 112 114 ) 113 115 } 114 116 }