Merge "Avoid removing USB state changes during CONFIGURED uevent"
This commit is contained in:
@@ -634,7 +634,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