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

Commit 37fb4292 authored by Luciano Pacheco's avatar Luciano Pacheco
Browse files

DocsUI M3: Fix the test ThemeUtilsTest

The helper overrideForTest() needs to mark the mapping as initialized to
avoid it being re-initialized.

Bug: 403375773, 412852528
Test: atest DocumentsUIGoogleTests:com.android.documentsui.util.ThemeUtilsTest
Flag: com.android.documentsui.flags.use_material3
Change-Id: Id71bb4375aa07a7805d0eab149bcf19f616948cf
parent 918931f1
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -112,6 +112,7 @@ abstract class Material3Config private constructor() {

    @JvmStatic
    fun overrideForTest(overrides: Map<Int, Int>) {
      initialized = true
      idMapping = overrides
    }
  }