diff --git a/app/src/main/java/org/ntlab/acanthus_client/views/animation/AnimationActivity.java b/app/src/main/java/org/ntlab/acanthus_client/views/animation/AnimationActivity.java index c5f65f5..2bc13ac 100644 --- a/app/src/main/java/org/ntlab/acanthus_client/views/animation/AnimationActivity.java +++ b/app/src/main/java/org/ntlab/acanthus_client/views/animation/AnimationActivity.java @@ -3,16 +3,29 @@ import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; -import org.ntlab.acanthus_client.R; + public class AnimationActivity extends AppCompatActivity { + private AnimationCanvas animationCanvas; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); - setContentView(R.layout.activity_animation); - AnimationCanvas animation = new AnimationCanvas(this); - setContentView(animation); + animationCanvas = new AnimationCanvas(this); + setContentView(animationCanvas); } + + @Override + protected void onPause(){ + super.onPause(); + animationCanvas.onPouse(); + } + + @Override + protected void onResume(){ + super.onResume(); + animationCanvas.onResume(); + } + } \ No newline at end of file