Commit ff078cb4 by ibaker Committed by Christos Tsilopoulos

Add explicit protected constructor to Timeline.

Timeline is already abstract, so it can only be constructed from a
subclass anyway.

PiperOrigin-RevId: 389827960
parent 700ec939
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment