Clean up dead code from database refactor.
This commit is contained in:
parent
dccfafa9e8
commit
c0ac2176c1
1 changed files with 1 additions and 3 deletions
|
@ -85,13 +85,11 @@ public abstract class MediaPreviewFragment extends Fragment {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void checkMediaStillAvailable() {
|
private void checkMediaStillAvailable() {
|
||||||
if (attachmentId == null) {
|
if (attachmentId == null) {
|
||||||
attachmentId = new PartUriParser(Objects.requireNonNull(requireArguments().getParcelable(DATA_URI))).getPartId();
|
attachmentId = new PartUriParser(Objects.requireNonNull(requireArguments().getParcelable(DATA_URI))).getPartId();
|
||||||
}
|
}
|
||||||
|
|
||||||
final Context context = requireContext().getApplicationContext();
|
|
||||||
|
|
||||||
SimpleTask.run(getViewLifecycleOwner().getLifecycle(),
|
SimpleTask.run(getViewLifecycleOwner().getLifecycle(),
|
||||||
() -> SignalDatabase.attachments().hasAttachment(attachmentId),
|
() -> SignalDatabase.attachments().hasAttachment(attachmentId),
|
||||||
hasAttachment -> { if (!hasAttachment) events.mediaNotAvailable(); });
|
hasAttachment -> { if (!hasAttachment) events.mediaNotAvailable(); });
|
||||||
|
|
Loading…
Add table
Reference in a new issue