Use getDimensionPixel size instead of casting to an int.

Change-Id: I907c8be25bd4cf0fefc2bb4e0282db2d136da099
1 file changed