Use application context to get the screen's display metrics. Bug: 30127070 Change-Id: I2c453c494ef210c12d89fc7e3ff026728f9ecb0f (cherry picked from commit afb38c5c)