mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-23 02:10:44 +01:00
Clean up dead code from database refactor.
This commit is contained in:
committed by
Greyson Parrelli
parent
dccfafa9e8
commit
c0ac2176c1
@@ -85,13 +85,11 @@ public abstract class MediaPreviewFragment extends Fragment {
|
||||
return null;
|
||||
}
|
||||
|
||||
public void checkMediaStillAvailable() {
|
||||
private void checkMediaStillAvailable() {
|
||||
if (attachmentId == null) {
|
||||
attachmentId = new PartUriParser(Objects.requireNonNull(requireArguments().getParcelable(DATA_URI))).getPartId();
|
||||
}
|
||||
|
||||
final Context context = requireContext().getApplicationContext();
|
||||
|
||||
SimpleTask.run(getViewLifecycleOwner().getLifecycle(),
|
||||
() -> SignalDatabase.attachments().hasAttachment(attachmentId),
|
||||
hasAttachment -> { if (!hasAttachment) events.mediaNotAvailable(); });
|
||||
|
||||
Reference in New Issue
Block a user