-
-
Notifications
You must be signed in to change notification settings - Fork 504
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
Refactor PlaybackHelper to use dependency injection #3584
Refactor PlaybackHelper to use dependency injection #3584
Conversation
app/src/main/java/org/jellyfin/androidtv/util/apiclient/PlaybackHelper.java
Fixed
Show fixed
Hide fixed
app/src/main/java/org/jellyfin/androidtv/util/apiclient/PlaybackHelper.java
Fixed
Show fixed
Hide fixed
app/src/main/java/org/jellyfin/androidtv/util/apiclient/PlaybackHelper.java
Fixed
Show fixed
Hide fixed
app/src/main/java/org/jellyfin/androidtv/util/apiclient/PlaybackHelper.java
Fixed
Show fixed
Hide fixed
app/src/main/java/org/jellyfin/androidtv/util/apiclient/PlaybackHelper.java
Fixed
Show fixed
Hide fixed
app/src/main/java/org/jellyfin/androidtv/util/apiclient/PlaybackHelper.java
Fixed
Show fixed
Hide fixed
app/src/main/java/org/jellyfin/androidtv/util/apiclient/PlaybackHelper.java
Fixed
Show fixed
Hide fixed
app/src/main/java/org/jellyfin/androidtv/util/apiclient/PlaybackHelper.java
Fixed
Show fixed
Hide fixed
app/src/main/java/org/jellyfin/androidtv/util/apiclient/PlaybackHelper.java
Fixed
Show fixed
Hide fixed
private Lazy<PlaybackControllerContainer> playbackControllerContainer = KoinJavaComponent.<PlaybackControllerContainer>inject(PlaybackControllerContainer.class); | ||
|
||
@Override | ||
public void getItemsToPlay(final org.jellyfin.sdk.model.api.BaseItemDto mainItem, boolean allowIntros, final boolean shuffle, final Response<List<org.jellyfin.sdk.model.api.BaseItemDto>> outerResponse) { |
Check notice
Code scanning / Android Lint
Unknown nullness Note
private Lazy<PlaybackControllerContainer> playbackControllerContainer = KoinJavaComponent.<PlaybackControllerContainer>inject(PlaybackControllerContainer.class); | ||
|
||
@Override | ||
public void getItemsToPlay(final org.jellyfin.sdk.model.api.BaseItemDto mainItem, boolean allowIntros, final boolean shuffle, final Response<List<org.jellyfin.sdk.model.api.BaseItemDto>> outerResponse) { |
Check notice
Code scanning / Android Lint
Unknown nullness Note
@@ -305,22 +314,24 @@ | |||
}); | |||
} | |||
|
|||
public static void retrieveAndPlay(UUID id, boolean shuffle, Context activity) { | |||
@Override | |||
public void retrieveAndPlay(UUID id, boolean shuffle, Context activity) { |
Check notice
Code scanning / Android Lint
Unknown nullness Note
@@ -305,22 +314,24 @@ | |||
}); | |||
} | |||
|
|||
public static void retrieveAndPlay(UUID id, boolean shuffle, Context activity) { | |||
@Override | |||
public void retrieveAndPlay(UUID id, boolean shuffle, Context activity) { |
Check notice
Code scanning / Android Lint
Unknown nullness Note
UUID userId = KoinJavaComponent.<SessionRepository>get(SessionRepository.class).getCurrentSession().getValue().getUserId(); | ||
KoinJavaComponent.<ApiClient>get(ApiClient.class).GetItemAsync(id.toString(), userId.toString(), new Response<BaseItemDto>() { | ||
@Override | ||
public void retrieveAndPlay(UUID id, final boolean shuffle, final Long position, final Context activity) { |
Check notice
Code scanning / Android Lint
Unknown nullness Note
UUID userId = KoinJavaComponent.<SessionRepository>get(SessionRepository.class).getCurrentSession().getValue().getUserId(); | ||
KoinJavaComponent.<ApiClient>get(ApiClient.class).GetItemAsync(id.toString(), userId.toString(), new Response<BaseItemDto>() { | ||
@Override | ||
public void retrieveAndPlay(UUID id, final boolean shuffle, final Long position, final Context activity) { |
Check notice
Code scanning / Android Lint
Unknown nullness Note
UUID userId = KoinJavaComponent.<SessionRepository>get(SessionRepository.class).getCurrentSession().getValue().getUserId(); | ||
KoinJavaComponent.<ApiClient>get(ApiClient.class).GetItemAsync(id.toString(), userId.toString(), new Response<BaseItemDto>() { | ||
@Override | ||
public void retrieveAndPlay(UUID id, final boolean shuffle, final Long position, final Context activity) { |
Check notice
Code scanning / Android Lint
Unknown nullness Note
@@ -335,21 +346,22 @@ | |||
}); | |||
} | |||
|
|||
public static void playInstantMix(Context context, org.jellyfin.sdk.model.api.BaseItemDto item) { | |||
@Override | |||
public void playInstantMix(Context context, org.jellyfin.sdk.model.api.BaseItemDto item) { |
Check notice
Code scanning / Android Lint
Unknown nullness Note
@@ -335,21 +346,22 @@ | |||
}); | |||
} | |||
|
|||
public static void playInstantMix(Context context, org.jellyfin.sdk.model.api.BaseItemDto item) { | |||
@Override | |||
public void playInstantMix(Context context, org.jellyfin.sdk.model.api.BaseItemDto item) { |
Check notice
Code scanning / Android Lint
Unknown nullness Note
Changes
Issues