Merge "Fix app switch latency optimization." into gingerbread