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

Commit bc4cb2c2 authored by Jerry Zhang's avatar Jerry Zhang Committed by android-build-merger
Browse files

Reset functions to null when user changes.

am: e537a831

Change-Id: Iea5d61d685c342e87cb96c8bbf3e863a81639c7b
parents 450c6035 e537a831
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1017,7 +1017,7 @@ public class UsbDeviceManager {
                            Slog.v(TAG, "Current user switched to " + msg.arg1
                                    + "; resetting USB host stack for MTP or PTP");
                            // avoid leaking sensitive data from previous user
                            setEnabledFunctions(mCurrentFunctions, true, false);
                            setEnabledFunctions(null, true, false);
                        }
                        mCurrentUser = msg.arg1;
                    }