Fix default usb settings will set wrong function when onPause()
Bug: 229200265 Test: make -j64 RunSettingsRoboTests Change-Id: Ibee2d39af8b341d03117d96029446ddcd45921fe
This commit is contained in:
@@ -189,6 +189,8 @@ public class UsbDefaultFragment extends RadioButtonPickerFragment {
|
||||
@Override
|
||||
public void onPause() {
|
||||
super.onPause();
|
||||
mCurrentFunctions = mUsbBackend.getCurrentFunctions();
|
||||
Log.d(TAG, "onPause() : current functions : " + mCurrentFunctions);
|
||||
mUsbBackend.setDefaultUsbFunctions(mCurrentFunctions);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user