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..83613bb 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,38 @@ import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; +import android.os.Handler; +import android.util.Log; +import android.widget.TextView; + import org.ntlab.acanthus_client.R; +import java.text.DecimalFormat; +import java.util.Timer; +import java.util.TimerTask; + + 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