-
-
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
Use dependency injection for ItemLauncher, KeyProcessor and ReportingHelper #3572
Conversation
} | ||
|
||
if (liveTvPreferences.get(LiveTvPreferences.Companion.getShowRepeatIndicator()) && Utils.isTrue(program.getIsRepeat())) { | ||
InfoLayoutHelper.addBlockText(context, mInfoRow, context.getString(R.string.lbl_repeat), 10, Color.GRAY, androidx.leanback.R.color.lb_default_brand_color); | ||
addBlockText(context.getString(R.string.lbl_repeat), 10, Color.GRAY, androidx.leanback.R.color.lb_default_brand_color); |
Check warning
Code scanning / Android Lint
Using private resources Warning
TextView view = new TextView(getContext()); | ||
view.setTextSize(size); | ||
view.setTextColor(textColor); | ||
view.setText(" " + text + " "); |
Check warning
Code scanning / Android Lint
TextView Internationalization Warning
} | ||
|
||
public static Destination.Fragment getUserViewDestination(@Nullable final BaseItemDto baseItem) { | ||
public Destination.Fragment getUserViewDestination(@Nullable final BaseItemDto baseItem) { |
Check notice
Code scanning / Android Lint
Unknown nullness Note
public static void launch(final BaseRowItem rowItem, ItemRowAdapter adapter, int pos, final Context context) { | ||
NavigationRepository navigationRepository = KoinJavaComponent.<NavigationRepository>get(NavigationRepository.class); | ||
|
||
public void launch(final BaseRowItem rowItem, ItemRowAdapter adapter, int pos, final Context context) { |
Check notice
Code scanning / Android Lint
Unknown nullness Note
public static void launch(final BaseRowItem rowItem, ItemRowAdapter adapter, int pos, final Context context) { | ||
NavigationRepository navigationRepository = KoinJavaComponent.<NavigationRepository>get(NavigationRepository.class); | ||
|
||
public void launch(final BaseRowItem rowItem, ItemRowAdapter adapter, int pos, final Context context) { |
Check notice
Code scanning / Android Lint
Unknown nullness Note
private final Lazy<DataRefreshService> dataRefreshService = KoinJavaComponent.<DataRefreshService>inject(DataRefreshService.class); | ||
private final Lazy<ApiClient> apiClient = KoinJavaComponent.<ApiClient>inject(ApiClient.class); | ||
|
||
public void reportStopped(org.jellyfin.sdk.model.api.BaseItemDto item, StreamInfo streamInfo, long pos) { |
Check notice
Code scanning / Android Lint
Unknown nullness Note
break; | ||
} | ||
} | ||
} | ||
|
||
public static void reportStart(org.jellyfin.sdk.model.api.BaseItemDto item, long pos) { | ||
public void reportStart(org.jellyfin.sdk.model.api.BaseItemDto item, long pos) { |
Check notice
Code scanning / Android Lint
Unknown nullness Note
Timber.i("Playback of %s started.", item.getName()); | ||
} | ||
|
||
public static void reportProgress(@Nullable PlaybackController playbackController, org.jellyfin.sdk.model.api.BaseItemDto item, StreamInfo currentStreamInfo, Long position, boolean isPaused) { | ||
public void reportProgress(@Nullable PlaybackController playbackController, org.jellyfin.sdk.model.api.BaseItemDto item, StreamInfo currentStreamInfo, Long position, boolean isPaused) { |
Check notice
Code scanning / Android Lint
Unknown nullness Note
Timber.i("Playback of %s started.", item.getName()); | ||
} | ||
|
||
public static void reportProgress(@Nullable PlaybackController playbackController, org.jellyfin.sdk.model.api.BaseItemDto item, StreamInfo currentStreamInfo, Long position, boolean isPaused) { | ||
public void reportProgress(@Nullable PlaybackController playbackController, org.jellyfin.sdk.model.api.BaseItemDto item, StreamInfo currentStreamInfo, Long position, boolean isPaused) { |
Check notice
Code scanning / Android Lint
Unknown nullness Note
Timber.i("Playback of %s started.", item.getName()); | ||
} | ||
|
||
public static void reportProgress(@Nullable PlaybackController playbackController, org.jellyfin.sdk.model.api.BaseItemDto item, StreamInfo currentStreamInfo, Long position, boolean isPaused) { | ||
public void reportProgress(@Nullable PlaybackController playbackController, org.jellyfin.sdk.model.api.BaseItemDto item, StreamInfo currentStreamInfo, Long position, boolean isPaused) { |
Check notice
Code scanning / Android Lint
Unknown nullness Note
Wanted to add replay gain support to playback rewrite but need to convert all item calls to use the SDK first so we can actually read the value from BaseItemDto. sad
Changes
Issues