Fixed animation placement

This commit is contained in:
Niels Gras
2024-06-05 13:45:00 +02:00
parent 65f4bb32b7
commit 213af5e6fb

View File

@@ -55,6 +55,7 @@ public class FitnessActivity extends RobotActivity implements RobotLifecycleCall
private static String exerciseVideoUrl;
private Animate animate;
private VideoView videoView;
private QiContext qiContext;
private final Object lock = new Object();
@@ -173,6 +174,7 @@ public class FitnessActivity extends RobotActivity implements RobotLifecycleCall
if ( videoView.isPlaying() )
{
QiContext qiContext = null;
Animation animationarmraise = AnimationBuilder.with(qiContext) // Create the builder with the context.
.withResources(R.raw.armraise) // Set the animation resource.
.build(); // Build the animation.