mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-24 00:37:47 +00:00
media preview orientation
// FREEBIE
This commit is contained in:
parent
348352cc71
commit
b39e41c803
@ -151,10 +151,6 @@ public class MediaPreviewActivity extends PassphraseRequiredActionBarActivity {
|
||||
|
||||
}
|
||||
|
||||
private InputStream getMediaInputStream() throws IOException {
|
||||
return PartAuthority.getPartStream(this, masterSecret, mediaUri);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onPause() {
|
||||
super.onPause();
|
||||
@ -176,8 +172,7 @@ public class MediaPreviewActivity extends PassphraseRequiredActionBarActivity {
|
||||
GLES20.glGetIntegerv(GLES20.GL_MAX_TEXTURE_SIZE, maxTextureSizeParams, 0);
|
||||
int maxTextureSize = Math.max(maxTextureSizeParams[0], 2048);
|
||||
Log.w(TAG, "reported GL_MAX_TEXTURE_SIZE: " + maxTextureSize);
|
||||
return BitmapUtil.createScaledBitmap(getMediaInputStream(),
|
||||
getMediaInputStream(),
|
||||
return BitmapUtil.createScaledBitmap(MediaPreviewActivity.this, masterSecret, mediaUri,
|
||||
maxTextureSize, maxTextureSize);
|
||||
} catch (IOException | BitmapDecodingException e) {
|
||||
return null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user