diff --git a/app/src/main/java/app/revanced/integrations/patches/DisableSuggestedVideoEndScreenPatch.java b/app/src/main/java/app/revanced/integrations/patches/DisableSuggestedVideoEndScreenPatch.java index bc0d7f8c..8b04a192 100644 --- a/app/src/main/java/app/revanced/integrations/patches/DisableSuggestedVideoEndScreenPatch.java +++ b/app/src/main/java/app/revanced/integrations/patches/DisableSuggestedVideoEndScreenPatch.java @@ -26,6 +26,7 @@ public final class DisableSuggestedVideoEndScreenPatch { public void onLayoutChange(View v, int left, int top, int right, int bottom, int oldLeft, int oldTop, int oldRight, int oldBottom) { // Disable sound effects to prevent the click sound. + imageView.setSoundEffectsEnabled(false); imageView.performClick(); // Remove the listener to prevent it from being called multiple times. diff --git a/app/src/main/java/app/revanced/integrations/patches/playback/quality/RestoreOldVideoQualityMenuPatch.java b/app/src/main/java/app/revanced/integrations/patches/playback/quality/RestoreOldVideoQualityMenuPatch.java index 92a66ca2..0fee1039 100644 --- a/app/src/main/java/app/revanced/integrations/patches/playback/quality/RestoreOldVideoQualityMenuPatch.java +++ b/app/src/main/java/app/revanced/integrations/patches/playback/quality/RestoreOldVideoQualityMenuPatch.java @@ -33,6 +33,7 @@ public final class RestoreOldVideoQualityMenuPatch { View advancedQualityView = ((ViewGroup) recyclerView.getChildAt(0)).getChildAt(3); if (advancedQualityView != null) { // Click the "Advanced" quality menu to show the "old" quality menu. + advancedQualityView.setSoundEffectsEnabled(false); advancedQualityView.performClick(); } } diff --git a/app/src/main/java/app/revanced/integrations/patches/playback/speed/CustomPlaybackSpeedPatch.java b/app/src/main/java/app/revanced/integrations/patches/playback/speed/CustomPlaybackSpeedPatch.java index 5e318578..30f79e64 100644 --- a/app/src/main/java/app/revanced/integrations/patches/playback/speed/CustomPlaybackSpeedPatch.java +++ b/app/src/main/java/app/revanced/integrations/patches/playback/speed/CustomPlaybackSpeedPatch.java @@ -4,16 +4,14 @@ import android.preference.ListPreference; import android.support.v7.widget.RecyclerView; import android.view.View; import android.view.ViewGroup; - import androidx.annotation.NonNull; - -import java.util.Arrays; - import app.revanced.integrations.patches.components.PlaybackSpeedMenuFilterPatch; import app.revanced.integrations.settings.SettingsEnum; import app.revanced.integrations.utils.LogHelper; import app.revanced.integrations.utils.ReVancedUtils; +import java.util.Arrays; + public class CustomPlaybackSpeedPatch { /** * Maximum playback speed, exclusive value. Custom speeds must be less than this value. @@ -111,7 +109,10 @@ public class CustomPlaybackSpeedPatch { // Dismiss View [R.id.touch_outside] is the 1st ChildView of the 4th ParentView. // This only shows in phone layout. - parentView4th.getChildAt(0).performClick(); + + final var touchInsidedView = parentView4th.getChildAt(0); + touchInsidedView.setSoundEffectsEnabled(false); + touchInsidedView.performClick(); // In tablet layout there is no Dismiss View, instead we just hide all two parent views. parentView3rd.setVisibility(View.GONE);