res:dock:: fix switch problem.

tower:https://tower.im/projects/8f19f0bf0e754f0b82ef2c24bc230973/todos/c20e4c9f7d4b4f10bfee826cc3cbe149/
Change-Id: Ib0285c8996246a89c24efbf52fdbee56f48c5dda