Merge "Avoid removing USB state changes during CONFIGURED uevent" am: 6b8b9efad1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1898830 Change-Id: Ia1a792ea55cff7136c3dc133c4deb5caf7c96809
This commit is contained in:
@@ -631,7 +631,7 @@ public class UsbDeviceManager implements ActivityTaskManagerInternal.ScreenObser
|
||||
Slog.e(TAG, "unknown state " + state);
|
||||
return;
|
||||
}
|
||||
removeMessages(MSG_UPDATE_STATE);
|
||||
if (configured == 0) removeMessages(MSG_UPDATE_STATE);
|
||||
if (connected == 1) removeMessages(MSG_FUNCTION_SWITCH_TIMEOUT);
|
||||
Message msg = Message.obtain(this, MSG_UPDATE_STATE);
|
||||
msg.arg1 = connected;
|
||||
|
||||
Reference in New Issue
Block a user