-
-
Notifications
You must be signed in to change notification settings - Fork 503
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
Migrate "next up" row to SDK #3624
Conversation
|
||
// Some special flavor for series, used in FullDetailsFragment | ||
val firstNextUp = response.items?.firstOrNull() | ||
if (query.seriesId != null && response.items?.size == 1 && firstNextUp?.seasonId != null && firstNextUp.indexNumber != null) { |
Check warning
Code scanning / detekt
Complex conditions should be simplified and extracted into well-named methods if necessary. Warning
|
||
// Some special flavor for series, used in FullDetailsFragment | ||
val firstNextUp = response.items?.firstOrNull() | ||
if (query.seriesId != null && response.items?.size == 1 && firstNextUp?.seasonId != null && firstNextUp.indexNumber != null) { |
Check warning
Code scanning / detekt
Line detected, which is longer than the defined maximum line length in the code style. Warning
@@ -97,7 +97,7 @@ | |||
this.changeTriggers = changeTriggers; | |||
} | |||
|
|||
public BrowseRowDef(String header, NextUpQuery query) { | |||
public BrowseRowDef(String header, GetNextUpRequest query) { |
Check notice
Code scanning / Android Lint
Unknown nullness Note
@@ -97,7 +97,7 @@ | |||
this.changeTriggers = changeTriggers; | |||
} | |||
|
|||
public BrowseRowDef(String header, NextUpQuery query) { | |||
public BrowseRowDef(String header, GetNextUpRequest query) { |
Check notice
Code scanning / Android Lint
Unknown nullness Note
@@ -110,7 +110,7 @@ | |||
this.queryType = QueryType.SeriesTimer; | |||
} | |||
|
|||
public BrowseRowDef(String header, NextUpQuery query, ChangeTriggerType[] changeTriggers) { | |||
public BrowseRowDef(String header, GetNextUpRequest query, ChangeTriggerType[] changeTriggers) { |
Check notice
Code scanning / Android Lint
Unknown nullness Note
@@ -110,7 +110,7 @@ | |||
this.queryType = QueryType.SeriesTimer; | |||
} | |||
|
|||
public BrowseRowDef(String header, NextUpQuery query, ChangeTriggerType[] changeTriggers) { | |||
public BrowseRowDef(String header, GetNextUpRequest query, ChangeTriggerType[] changeTriggers) { |
Check notice
Code scanning / Android Lint
Unknown nullness Note
@@ -110,7 +110,7 @@ | |||
this.queryType = QueryType.SeriesTimer; | |||
} | |||
|
|||
public BrowseRowDef(String header, NextUpQuery query, ChangeTriggerType[] changeTriggers) { | |||
public BrowseRowDef(String header, GetNextUpRequest query, ChangeTriggerType[] changeTriggers) { |
Check notice
Code scanning / Android Lint
Unknown nullness Note
@@ -221,7 +221,7 @@ | |||
return query; | |||
} | |||
|
|||
public NextUpQuery getNextUpQuery() { | |||
public GetNextUpRequest getNextUpQuery() { |
Check notice
Code scanning / Android Lint
Unknown nullness Note
@@ -227,12 +227,11 @@ | |||
queryType = QueryType.AlbumArtists; | |||
} | |||
|
|||
public ItemRowAdapter(Context context, NextUpQuery query, boolean preferParentThumb, Presenter presenter, MutableObjectAdapter<Row> parent) { | |||
public ItemRowAdapter(Context context, GetNextUpRequest query, boolean preferParentThumb, Presenter presenter, MutableObjectAdapter<Row> parent) { |
Check notice
Code scanning / Android Lint
Unknown nullness Note
@@ -227,12 +227,11 @@ | |||
queryType = QueryType.AlbumArtists; | |||
} | |||
|
|||
public ItemRowAdapter(Context context, NextUpQuery query, boolean preferParentThumb, Presenter presenter, MutableObjectAdapter<Row> parent) { | |||
public ItemRowAdapter(Context context, GetNextUpRequest query, boolean preferParentThumb, Presenter presenter, MutableObjectAdapter<Row> parent) { |
Check notice
Code scanning / Android Lint
Unknown nullness Note
@@ -227,12 +227,11 @@ | |||
queryType = QueryType.AlbumArtists; | |||
} | |||
|
|||
public ItemRowAdapter(Context context, NextUpQuery query, boolean preferParentThumb, Presenter presenter, MutableObjectAdapter<Row> parent) { | |||
public ItemRowAdapter(Context context, GetNextUpRequest query, boolean preferParentThumb, Presenter presenter, MutableObjectAdapter<Row> parent) { |
Check notice
Code scanning / Android Lint
Unknown nullness Note
@@ -227,12 +227,11 @@ | |||
queryType = QueryType.AlbumArtists; | |||
} | |||
|
|||
public ItemRowAdapter(Context context, NextUpQuery query, boolean preferParentThumb, Presenter presenter, MutableObjectAdapter<Row> parent) { | |||
public ItemRowAdapter(Context context, GetNextUpRequest query, boolean preferParentThumb, Presenter presenter, MutableObjectAdapter<Row> parent) { |
Check notice
Code scanning / Android Lint
Unknown nullness Note
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 lgtm assuming you don't care about the detekt warnings 😉
The linters are suggestions 🙈 |
Changes
enableResumable=false
for home next up row to prevent episodes from showing in both the continue watching and next up rowsIssues