From ba75c58a23b87bc7fda43518d6d1eb415cea2465 Mon Sep 17 00:00:00 2001 From: Bastian Kohler Date: Wed, 24 May 2023 22:16:54 +0200 Subject: [PATCH] Refactor --- .../ueberwachungssystem/VideoDetection/VideoDetector.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/com/example/ueberwachungssystem/VideoDetection/VideoDetector.java b/app/src/main/java/com/example/ueberwachungssystem/VideoDetection/VideoDetector.java index 1d9e8d9..14537b3 100644 --- a/app/src/main/java/com/example/ueberwachungssystem/VideoDetection/VideoDetector.java +++ b/app/src/main/java/com/example/ueberwachungssystem/VideoDetection/VideoDetector.java @@ -22,7 +22,6 @@ import com.google.common.util.concurrent.ListenableFuture; import java.nio.ByteBuffer; import java.util.concurrent.ExecutionException; - @ExperimentalGetImage public class VideoDetector { @@ -54,7 +53,7 @@ public class VideoDetector { public void setOnDetectionListener(OnDetectionListener listener) { this.listener = listener; } - public void reportViolation(float amplitude) { + private void reportViolation(float amplitude) { if (listener != null) { DetectionReport detectionReport = new DetectionReport("123", "Video", amplitude); listener.onDetection(detectionReport);