Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused "Offline" item location #3603

Merged
merged 1 commit into from
May 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import org.jellyfin.androidtv.util.Utils;
import org.jellyfin.sdk.model.api.BaseItemDto;
import org.jellyfin.sdk.model.api.BaseItemKind;
import org.jellyfin.sdk.model.api.LocationType;
import org.jellyfin.sdk.model.api.UserItemDataDto;
import org.koin.java.KoinJavaComponent;

Expand Down Expand Up @@ -151,9 +150,6 @@ public void setItem(BaseRowItem m, ImageType imageType, int lHeight, int pHeight
case VIRTUAL:
mCardView.setBanner(itemDto.getPremiereDate() == null || itemDto.getPremiereDate().isAfter(LocalDateTime.now()) ? R.drawable.banner_edge_future : R.drawable.banner_edge_missing);
break;
case OFFLINE:
mCardView.setBanner(R.drawable.banner_edge_offline);
break;
}
}
showProgress = true;
Expand Down Expand Up @@ -201,9 +197,6 @@ public void setItem(BaseRowItem m, ImageType imageType, int lHeight, int pHeight
if (cardWidth < 5) {
cardWidth = 115; //Guard against zero size images causing picasso to barf
}
if (itemDto.getLocationType() == LocationType.OFFLINE) {
mCardView.setBanner(R.drawable.banner_edge_offline);
}
if (Utils.isTrue(itemDto.isPlaceHolder())) {
mCardView.setBanner(R.drawable.banner_edge_disc);
}
Expand Down Expand Up @@ -264,7 +257,6 @@ public void setItem(BaseRowItem m, ImageType imageType, int lHeight, int pHeight
switch (program.getLocationType()) {
case FILE_SYSTEM:
case REMOTE:
case OFFLINE:
break;
case VIRTUAL:
if (program.getStartDate() != null && program.getStartDate().isAfter(LocalDateTime.now())) {
Expand Down
Binary file removed app/src/main/res/drawable/banner_edge_offline.png
Binary file not shown.
Loading