mirror of
https://github.com/samsonjs/media.git
synced 2026-04-03 10:55:48 +00:00
Add explicit protected constructor to Timeline.
Timeline is already abstract, so it can only be constructed from a subclass anyway. PiperOrigin-RevId: 389827960
This commit is contained in:
parent
700ec93994
commit
ff078cb4b5
1 changed files with 2 additions and 0 deletions
|
|
@ -983,6 +983,8 @@ public abstract class Timeline implements Bundleable {
|
|||
}
|
||||
};
|
||||
|
||||
protected Timeline() {}
|
||||
|
||||
/** Returns whether the timeline is empty. */
|
||||
public final boolean isEmpty() {
|
||||
return getWindowCount() == 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue