Merge "Fix flickering in USB page" into sc-dev

This commit is contained in:
TreeHugger Robot
2021-06-01 05:44:35 +00:00
committed by Android (Google) Code Review

View File

@@ -76,6 +76,8 @@ public class UsbDetailsFunctionsController extends UsbDetailsController
public void displayPreference(PreferenceScreen screen) {
super.displayPreference(screen);
mProfilesContainer = screen.findPreference(getPreferenceKey());
refresh(/* connected */ false, /* functions */ mUsbBackend.getDefaultUsbFunctions(),
/* powerRole */ 0, /* dataRole */ 0);
}
/**