optimize desktop search method and fix preference small icon

Change-Id: I1fcf45e828afb12dda7f8c08d881df7a60994cda
tower: https://tower.im/projects/8f19f0bf0e754f0b82ef2c24bc230973/todos/46264acc65174484a2dc96e8aeee7dea/