mirror of
https://github.com/oxen-io/session-android.git
synced 2025-12-03 10:22:20 +00:00
disable fancy new thumbnail preview
It was causing OOMEs on old devices. // FREEBIE
This commit is contained in:
committed by
Moxie Marlinspike
parent
cc65fab226
commit
13227b6aa5
@@ -193,13 +193,6 @@ public class MediaPreviewActivity extends PassphraseRequiredActionBarActivity im
|
||||
}
|
||||
|
||||
private void displayImage() {
|
||||
try {
|
||||
image.setImageBitmap(BitmapFactory.decodeStream(PartAuthority.getThumbnail(this, masterSecret, mediaUri)));
|
||||
image.setVisibility(View.VISIBLE);
|
||||
} catch (IOException fnfe) {
|
||||
Log.w(TAG, "tried to render thumbnail, but it wasn't found. carrying on.");
|
||||
}
|
||||
|
||||
new AsyncTask<Void,Void,Bitmap>() {
|
||||
@Override
|
||||
protected Bitmap doInBackground(Void... params) {
|
||||
|
||||
Reference in New Issue
Block a user