Revert "Fix ANR when leaving MediaPreviewActivity."

This reverts commit 8be659c1c8.
This commit is contained in:
Cody Henthorne
2021-06-21 09:55:40 -04:00
parent 5f1454aeb8
commit 08f023fb12
2 changed files with 6 additions and 13 deletions

View File

@@ -8,8 +8,6 @@ import androidx.lifecycle.DefaultLifecycleObserver;
import androidx.lifecycle.Lifecycle;
import androidx.lifecycle.LifecycleOwner;
import org.signal.core.util.concurrent.SignalExecutors;
/**
* Wraps a {@link Cursor} that will be closed automatically when the {@link Lifecycle.Event}.ON_DESTROY
* is fired from the lifecycle this object is observing.
@@ -24,9 +22,4 @@ public class LifecycleCursorWrapper extends CursorWrapper implements DefaultLife
public void onDestroy(@NonNull LifecycleOwner owner) {
close();
}
@Override
public void close() {
SignalExecutors.BOUNDED.execute(super::close);
}
}