Merge "Fix a native crash in input dispatcher when windows are removed." into gingerbread