mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Fix warning about adjacent overload methods in TtmlStyle
PiperOrigin-RevId: 290610936
This commit is contained in:
parent
f7470c5126
commit
9cfc75ff8a
@ -166,19 +166,8 @@ import java.lang.annotation.RetentionPolicy;
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Inherits from an ancestor style. Properties like <i>tts:backgroundColor</i> which
|
* Chains this style to referential style. Local properties which are already set are never
|
||||||
* are not inheritable are not inherited as well as properties which are already set locally
|
* overridden.
|
||||||
* are never overridden.
|
|
||||||
*
|
|
||||||
* @param ancestor the ancestor style to inherit from
|
|
||||||
*/
|
|
||||||
public TtmlStyle inherit(TtmlStyle ancestor) {
|
|
||||||
return inherit(ancestor, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Chains this style to referential style. Local properties which are already set
|
|
||||||
* are never overridden.
|
|
||||||
*
|
*
|
||||||
* @param ancestor the referential style to inherit from
|
* @param ancestor the referential style to inherit from
|
||||||
*/
|
*/
|
||||||
@ -186,6 +175,17 @@ import java.lang.annotation.RetentionPolicy;
|
|||||||
return inherit(ancestor, true);
|
return inherit(ancestor, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Inherits from an ancestor style. Properties like <i>tts:backgroundColor</i> which are not
|
||||||
|
* inheritable are not inherited as well as properties which are already set locally are never
|
||||||
|
* overridden.
|
||||||
|
*
|
||||||
|
* @param ancestor the ancestor style to inherit from
|
||||||
|
*/
|
||||||
|
public TtmlStyle inherit(TtmlStyle ancestor) {
|
||||||
|
return inherit(ancestor, false);
|
||||||
|
}
|
||||||
|
|
||||||
private TtmlStyle inherit(TtmlStyle ancestor, boolean chaining) {
|
private TtmlStyle inherit(TtmlStyle ancestor, boolean chaining) {
|
||||||
if (ancestor != null) {
|
if (ancestor != null) {
|
||||||
if (!hasFontColor && ancestor.hasFontColor) {
|
if (!hasFontColor && ancestor.hasFontColor) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user