MediaRouter: Set the dialog width complying with the framework

The framework should set the dialog width properly, but somehow it
doesn't work, hence duplicating a similar logic here to determine the
appropriate width.

Change-Id: Id9e240f253efd6d286dc8acb4093cda613bdf5d6
8 files changed