Do not put floating windows into drag resize mode

Not really useful and creates a lot of "jank".

Bug: 27099358
Change-Id: Id1c5e09cc9731f64c5f52f9c187ccbda468ea26e
This commit is contained in:
Jorim Jaggi
2016-02-17 22:13:43 -08:00
parent 1374412d89
commit dd6e4c1984

View File

@@ -2165,6 +2165,11 @@ final class WindowState implements WindowManagerPolicy.WindowState {
if (task == null) {
return false;
}
if (mAttrs.width != MATCH_PARENT || mAttrs.height != MATCH_PARENT) {
// Floating windows never enter drag resize mode.
return false;
}
if (task.isDragResizing()) {
return true;
}