c8c67d731fc993ed8dc43520f29a274e3dac832d
- Prevent mocking ToggleScreenMagnificationPreferenceFragment for test - Use Robolectric's way to launch the fragment so that the fragment contains necessary setup **Root cause** - We called onCreateView directly in the test without the necessary setup in onCreate, which causes the FooterPreferenceController not being initialized. - We created a spyContext that returns a mock PackageManager, however, in the test execution, we didn't mock the context used by the fragment under test. Hence, the fragment didn't use the mock PackageManager in test. Bug: 284209879 Test: atest ToggleScreenMagnificationPreferenceFragmentTest --iterations 5 Change-Id: I7e71a03177526f5bb0c20a58855a7dfdffc2a22f
Merge "Add "Show key presses" to input developer options" into udc-qpr-dev am:
8fca8a72dc
am: 753647d584
Merge "One more fix for missing Activity embedding allowlisting for Assistant." into udc-d1-dev am:
bd60552454
am: d16cabe8be
am: b4445b54ee
…
Description
No description provided
Languages
Java
89.8%
Kotlin
10.2%