void runTimelineOperation(Timeline timeline, TimelineOperationKind operationKind, Runnable operationRunnable) { synchronized (LOCK) { this.getAnimatorThread(); switch (operationKind) { case CANCEL: this.cancelTimeline(timeline); return; case END: this.endTimeline(timeline); return; case RESUME: this.resumeTimeline(timeline); return; case SUSPEND: this.suspendTimeline(timeline); return; case ABORT: this.abortTimeline(timeline); return; } operationRunnable.run(); } }
void runTimelineOperation(Timeline timeline, TimelineOperationKind operationKind, Runnable operationRunnable) { synchronized (LOCK) { this.getAnimatorThread(); switch (operationKind) { case CANCEL: this.cancelTimeline(timeline); return; case END: this.endTimeline(timeline); return; case RESUME: this.resumeTimeline(timeline); return; case SUSPEND: this.suspendTimeline(timeline); return; case ABORT: this.abortTimeline(timeline); return; } operationRunnable.run(); } }
return; case ABORT: this.abortTimeline(timeline); return;