Merge remote-tracking branch 'origin/main'
This commit is contained in:
@@ -168,6 +168,7 @@ public class FitnessActivity extends RobotActivity implements RobotLifecycleCall
|
|||||||
} else {
|
} else {
|
||||||
onSuccessfulFetch.handle(exercise);
|
onSuccessfulFetch.handle(exercise);
|
||||||
runOnUiThread(() -> {
|
runOnUiThread(() -> {
|
||||||
|
|
||||||
exerciseNameTextView.setText(exercise.name);
|
exerciseNameTextView.setText(exercise.name);
|
||||||
exerciseShortDescriptionTextView.setText(exercise.shortDescription);
|
exerciseShortDescriptionTextView.setText(exercise.shortDescription);
|
||||||
// exerciseDescriptionTextView.setText(exercise.description);
|
// exerciseDescriptionTextView.setText(exercise.description);
|
||||||
@@ -185,23 +186,7 @@ public class FitnessActivity extends RobotActivity implements RobotLifecycleCall
|
|||||||
// Stop shimmer animation
|
// Stop shimmer animation
|
||||||
stopShimmerAnimation();
|
stopShimmerAnimation();
|
||||||
|
|
||||||
if ( videoView.isPlaying() )
|
Pepper.animate("armraise");
|
||||||
{
|
|
||||||
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.
|
|
||||||
|
|
||||||
animate = AnimateBuilder.with(qiContext) // Create the builder with the context.
|
|
||||||
.withAnimation(animationarmraise) // Set the animation.
|
|
||||||
.build(); // Build the animate action.
|
|
||||||
|
|
||||||
Future<Void> animateFuture = animate.async().run();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
Log.e("FitnessActivity", "VideoView is null. Check your layout XML.");
|
|
||||||
}
|
|
||||||
|
|
||||||
// Start checking for user movement once the video has loaded
|
// Start checking for user movement once the video has loaded
|
||||||
this.motionProcessor.startListening();
|
this.motionProcessor.startListening();
|
||||||
|
Reference in New Issue
Block a user