From e49fbd6570217595c3dee776c0d3c940c605809c Mon Sep 17 00:00:00 2001 From: Alexey Kuznetsov Date: Fri, 6 Mar 2020 10:16:14 +0300 Subject: [PATCH] show one warning --- .../github/axet/audiorecorder/activities/RecordingActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/github/axet/audiorecorder/activities/RecordingActivity.java b/app/src/main/java/com/github/axet/audiorecorder/activities/RecordingActivity.java index e302cd7..dfe5ae8 100644 --- a/app/src/main/java/com/github/axet/audiorecorder/activities/RecordingActivity.java +++ b/app/src/main/java/com/github/axet/audiorecorder/activities/RecordingActivity.java @@ -404,7 +404,7 @@ public class RecordingActivity extends AppCompatThemeActivity { LayoutInflater inflater = LayoutInflater.from(getContext()); warning = inflater.inflate(R.layout.optimization, view); } - if (diffreal > 0 && diffenc >= diffreal && warning == null && foreground != null && background != null && foreground.getAverageSpeed() / background.getAverageSpeed() > 1 && slow == null) { + if (diffreal > 0 && diffenc >= diffreal && warning == null && foreground != null && background != null && foreground.getAverageSpeed() / background.getAverageSpeed() > 1) { LayoutInflater inflater = LayoutInflater.from(getContext()); warning = inflater.inflate(R.layout.slow, view); }