Merge pull request #4354 from Stypox/restriction-strings

Improve age restriction and yt restricted content strings
This commit is contained in:
Tobias Groza 2020-10-11 12:14:13 +02:00 committed by GitHub
commit 6fce06906d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 7 deletions

View file

@ -1563,7 +1563,8 @@ public class VideoDetailFragment
}
private void hideAgeRestrictedContent() {
showError(getString(R.string.restricted_video), false);
showError(getString(R.string.restricted_video,
getString(R.string.show_age_restricted_content_title)), false);
if (relatedStreamsLayout != null) { // tablet
relatedStreamsLayout.setVisibility(View.INVISIBLE);