Move PreferenceControllers to member variables to prevent memory leak
- Move PreferenceControllers to xml - Clean up the PreferenceController so that it's less tied to a fragment - Update and clean up the related robolectric test, so there are less mocks needed Bug: 352606511 Test: manually check the Color Correction screen is shown correctly, and choosing color correction options are reflected correctly Test: atest DaltonizerRadioButtonPreferenceControllerTest Test: atest ToggleDaltonizerPreferenceFragmentTest Flag: EXEMPT (moving controller to xml can't be flagged) Change-Id: I89b9366cfd7a398bb0572d34226d31d49373fd94
Loading
Please register or sign in to comment