Small improvement for ag/17016891 (unstash taskbar input area size)

Get the device width form DeviceProfile instead of context for efficiency.

Bug: 204166104
Test: Unstash and stash taskbar, done in both orientations.
Change-Id: I14c3593552939f3be78f3e5c1193020873555d37