OSDN Git Service

Don't set insets if task frame doesn't fit the screen
authorAndrii Kulian <akulian@google.com>
Wed, 23 Mar 2016 20:19:32 +0000 (13:19 -0700)
committerAndrii Kulian <akulian@google.com>
Thu, 24 Mar 2016 07:41:23 +0000 (00:41 -0700)
commita9d168c486aa9ec78485b0de80efe8652c14fc54
tree4a471ffd9171ab0ef5e9b96095f8e95e90f050f6
parent81a00e725d0435e4d779acc4740b37c9bbafb933
Don't set insets if task frame doesn't fit the screen

Set right and/or bottom insets to zero if the frame of the
task in multi-window mode doesn't fit the screen.
This covers the case when task has minimal width/height
which don't fit the visible area and task should be cropped.

Bug: 27621228
Change-Id: I741f1ef2e0994f7db0d49450fbb271e75f17a775
services/core/java/com/android/server/wm/WindowState.java