OSDN Git Service

Fix calls to Rect.intersect(Rect) in package com.android.server.wm
authorDoris Liu <tianliu@google.com>
Mon, 1 Jun 2015 20:18:43 +0000 (13:18 -0700)
committerDoris Liu <tianliu@google.com>
Tue, 2 Jun 2015 00:34:20 +0000 (17:34 -0700)
commit06d582d4e42893e7e061477004d991d35b5f0d78
tree4497b34765e519afb96cfe8058eafe2a0a7a4d5d
parent63428ccde7e925ceb94aa40e933b3d51954a7797
Fix calls to Rect.intersect(Rect) in package com.android.server.wm

This CL checks for the return value for Rect.intersect(Rect) for whether
there is actually an intersection before taking the calling rect as the
intersection. In addtion, this CL handles the cases where there is no
intersection (Rect.intersect(Rect) returns false).

bug: 7368679
Change-Id: I7d5ef7059ac432170470a108c0d6dece230ec0b3
services/core/java/com/android/server/wm/DisplayContent.java
services/core/java/com/android/server/wm/TaskStack.java
services/core/java/com/android/server/wm/WindowManagerService.java
services/core/java/com/android/server/wm/WindowState.java