diff --git a/app/src/main/java/org/thoughtcrime/securesms/MediaPreviewActivity.java b/app/src/main/java/org/thoughtcrime/securesms/MediaPreviewActivity.java index 60b5cbeb25..908943f5a8 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/MediaPreviewActivity.java +++ b/app/src/main/java/org/thoughtcrime/securesms/MediaPreviewActivity.java @@ -311,11 +311,6 @@ public class MediaPreviewActivity extends PassphraseRequiredActionBarActivity im private int cleanupMedia() { int restartItem = mediaPager.getCurrentItem(); - PagerAdapter adapter = mediaPager.getAdapter(); - if (adapter instanceof CursorPagerAdapter) { - ((CursorPagerAdapter)adapter).cursor.close(); - } - mediaPager.removeAllViews(); mediaPager.setAdapter(null);