Skip to content

Commit

Permalink
Remove unused "Offline" item location
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsvanvelzen committed May 22, 2024
1 parent 50e812f commit 50b70a5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
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.

0 comments on commit 50b70a5

Please sign in to comment.