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
@ -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…
x
Reference in New Issue
Block a user