diff --git a/app/src/test/java/com/droiddeck/launcher/input/InputLibraryTest.kt b/app/src/test/java/com/droiddeck/launcher/input/InputLibraryTest.kt index e36c3c8819..f9019ab2a6 100644 --- a/app/src/test/java/com/droiddeck/launcher/input/InputLibraryTest.kt +++ b/app/src/test/java/com/droiddeck/launcher/input/InputLibraryTest.kt @@ -447,11 +447,11 @@ class InputLibraryTest { assertEquals(true, overlay.adaptiveSticks) } - @Test fun theOldGamepadOpacityBecomesTheOneOnScreenOpacityAndClamps() { + @Test fun legacyLayoutOpacitySurvivesAndGlobalOpacityClampsIndependently() { ControllerPrefs.setOpacity(context, 60) val layout = InputLibraries.read(context).activeLayout(false, InputRole.PRIMARY)!! - assertEquals(100, layout.style.opacity) - assertEquals(60, ControllerPrefs.read(context).onScreenOpacity) + assertEquals(60, layout.style.opacity) + assertEquals(100, ControllerPrefs.read(context).onScreenOpacity) for ((requested, expected) in listOf(0 to 10, 45 to 45, 101 to 100)) { ControllerPrefs.setOnScreenOpacity(context, requested) assertEquals(expected, ControllerPrefs.read(context).onScreenOpacity)