res:dock:: fix switch mode problem.

tower:https://tower.im/projects/8f19f0bf0e754f0b82ef2c24bc230973/todos/b28130482cf341118323a9cbfc5614ec/
Change-Id: Id637aaa6b5a2668f2531d2ef792e65d130b308b0