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

Commit 3ba8ce49 authored by Colin Cross's avatar Colin Cross Committed by Automerger Merge Worker
Browse files

Fix runtime kotlin nullable error in ScreenshotDetectionControllerTest am:...

Fix runtime kotlin nullable error in ScreenshotDetectionControllerTest am: b6aaf842 am: 4e9b309e

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/24588598



Change-Id: I31fdbb898d4233fe69b0358b0c23490a6dd809d6
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents ac1dc128 4e9b309e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -170,8 +170,8 @@ class ScreenshotDetectionControllerTest {
    private class ComponentInfoFlagMatcher(
        @PackageManager.ComponentInfoFlagsBits val mask: Int, val value: Int
    ): ArgumentMatcher<PackageManager.ComponentInfoFlags> {
        override fun matches(flags: PackageManager.ComponentInfoFlags): Boolean {
            return (mask.toLong() and flags.value) == value.toLong()
        override fun matches(flags: PackageManager.ComponentInfoFlags?): Boolean {
            return flags != null && (mask.toLong() and flags.value) == value.toLong()
        }

        override fun toString(): String{