Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 07464df1 authored by Lucas Dupin's avatar Lucas Dupin Committed by Android (Google) Code Review
Browse files

Merge "Avoid SettingNotFoundException"

parents 0fd1bccf f59b105a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -177,7 +177,7 @@ open class FaceAuthScreenBrightnessController(
                    userDefinedBrightness = systemSettings.getFloat(SCREEN_BRIGHTNESS_FLOAT)
                }
            })
        userDefinedBrightness = systemSettings.getFloat(SCREEN_BRIGHTNESS_FLOAT)
        userDefinedBrightness = systemSettings.getFloat(SCREEN_BRIGHTNESS_FLOAT, 1f)
    }

    override fun dump(fd: FileDescriptor, pw: PrintWriter, args: Array<out String>) {
+2 −0
Original line number Diff line number Diff line
@@ -87,6 +87,8 @@ class FaceAuthScreenBrightnessControllerTest : SysuiTestCase() {
            override fun createAnimator(start: Float, end: Float) = animator
        }
        `when`(systemSettings.getFloat(eq(SCREEN_BRIGHTNESS_FLOAT))).thenReturn(INITIAL_BRIGHTNESS)
        `when`(systemSettings.getFloat(eq(SCREEN_BRIGHTNESS_FLOAT), eq(1f)))
                .thenReturn(INITIAL_BRIGHTNESS)
        faceAuthScreenBrightnessController.attach(whiteOverlay)
        verify(keyguardUpdateMonitor).registerCallback(capture(keyguardUpdateCallback))
    }