commit | 7c72668f19d404b01412abc67937b1b5c660df71 | [log] [tgz] |
---|---|---|
author | Wale Ogunwale <ogunwale@google.com> | Fri Feb 06 17:34:28 2015 -0800 |
committer | Wale Ogunwale <ogunwale@google.com> | Fri Feb 13 21:12:47 2015 -0800 |
tree | e98ddbb5e82a5a8e0e02e2fd14056cec591cb7ea | |
parent | 80955e105d6e71f7b71a63b391fd5a8adcded55e [diff] |
Adjust activity display metrics based on stack configuration. Apps normally use context.getResources().getDisplayMetrics() or getWindowManager().getDefaultDisplay() to get information about the screen dimensions. Not all the screen space is available for apps in a multi-window environment, so we limit the dimensions of the display object exposed to the app to that of the containing stack. Bug: 19225079 Bug: 19354838 Change-Id: I8dc3a6c9b99ecedcca28fc4ddaba9f31feb4f871