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:
ibaker 2021-08-10 09:57:54 +01:00 committed by Christos Tsilopoulos
parent 700ec93994
commit ff078cb4b5

View File

@ -983,6 +983,8 @@ public abstract class Timeline implements Bundleable {
} }
}; };
protected Timeline() {}
/** Returns whether the timeline is empty. */ /** Returns whether the timeline is empty. */
public final boolean isEmpty() { public final boolean isEmpty() {
return getWindowCount() == 0; return getWindowCount() == 0;