From a6b1f8d9e9f0abe99d632c2a464e3be7f5b47b67 Mon Sep 17 00:00:00 2001 From: Jorge Aguilar Date: Mon, 24 Jul 2017 08:42:16 -0700 Subject: [PATCH] - Adding missing breaks that prevented from having different animation types (#7) --- .../main/java/com/udevel/widgetlab/TypingIndicatorView.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/typing-indicator/src/main/java/com/udevel/widgetlab/TypingIndicatorView.java b/typing-indicator/src/main/java/com/udevel/widgetlab/TypingIndicatorView.java index 25839ad..633b984 100644 --- a/typing-indicator/src/main/java/com/udevel/widgetlab/TypingIndicatorView.java +++ b/typing-indicator/src/main/java/com/udevel/widgetlab/TypingIndicatorView.java @@ -292,14 +292,19 @@ public void setAnimationOrder(@Order int animationOrder) { switch (animationOrder) { case Order.CIRCULAR: sequenceGenerator = new CircularSequenceGenerator(); + break; case Order.LAST_FIRST: sequenceGenerator = new ReverseSequenceGenerator(); + break; case Order.RANDOM_NO_REPETITION: sequenceGenerator = new RandomNoRepetitionSequenceGenerator(); + break; case Order.SEQUENCE: sequenceGenerator = new InSequenceGenerator(); + break; case Order.RANDOM: sequenceGenerator = new RandomSequenceGenerator(); + break; } } }