The execution of handler on MidiDeviceConnectionWatcher is blocked while the screen rotating.
After the new Activity's onCreate being called, the handler will be executed.
But the original Activity is already destroyed, so the original Activity can't receive detaching events.
The execution of handler on
MidiDeviceConnectionWatcheris blocked while the screen rotating.After the new Activity's
onCreatebeing called, the handler will be executed.But the original Activity is already destroyed, so the original Activity can't receive detaching events.