mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-26 03:40:56 +01: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