-
-
Notifications
You must be signed in to change notification settings - Fork 457
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
Replace most utils with SDK #2014
Conversation
else -> name | ||
} | ||
|
||
fun BaseItemDto.getSubName(context: Context): String? = when (type) { |
Check notice
Code scanning
Prefer splitting up complex methods into smaller, easier to understand methods.
fun BaseItemDto.isLiveTv() = type == BaseItemKind.PROGRAM || type == BaseItemKind.LIVE_TV_CHANNEL | ||
fun BaseItemDto.isNew() = isSeries == true && isNews != true && isRepeat != true | ||
|
||
fun BaseItemDto.getProgramUnknownChannelName(): String? = TvManager.getChannel(TvManager.getAllChannelsIndex(channelId?.toString())).name |
Check notice
Code scanning
Line detected, which is longer than the defined maximum line length in the code style.
layout.addView(name); | ||
} | ||
|
||
private static void addProgramInfo(@NonNull Context context, BaseItemDto item, LinearLayout layout) { | ||
TextView name = new TextView(context); | ||
name.setTextSize(textSize); | ||
name.setText(BaseItemUtils.getProgramSubText(item, context)+" "); | ||
name.setText(BaseItemExtensionsKt.getProgramSubText(item, context)+" "); |
Check warning
Code scanning / Android Lint
TextView Internationalization
Changes
Issues