Load some recent tasks

Bug: 69166452
Test: Build quickstep
Change-Id: Id4b0172256d6920616a6b9529d61abd1fe0c1a36
This commit is contained in:
Winson Chung
2017-11-10 17:54:44 -08:00
parent f8088eecf1
commit b63b44c3d5
16 changed files with 399 additions and 135 deletions

View File

@@ -27,7 +27,6 @@ import android.graphics.Rect;
import android.util.DisplayMetrics;
import android.view.Gravity;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewGroup.LayoutParams;
import android.widget.FrameLayout;
@@ -681,13 +680,13 @@ public class DeviceProfile {
}
}
private int getCurrentWidth() {
public int getCurrentWidth() {
return isLandscape
? Math.max(widthPx, heightPx)
: Math.min(widthPx, heightPx);
}
private int getCurrentHeight() {
public int getCurrentHeight() {
return isLandscape
? Math.min(widthPx, heightPx)
: Math.max(widthPx, heightPx);