[DO NOT MERGE] Make the cutout slightly smaller
Temporary fix for S. Leaving the bug open for a proper fix in T. Bug: 189265196 Test: https://screenshot.googleplex.com/75fgCva736rqwg5 Change-Id: Ice3b189a41f759e090334e360e44543eabc4836d
This commit is contained in:
@@ -1489,6 +1489,7 @@ public class TaskView extends FrameLayout implements Reusable {
|
||||
private final float mCornerRadius;
|
||||
private final float mWindowCornerRadius;
|
||||
|
||||
public float mFullscreenProgress;
|
||||
public RectF mCurrentDrawnInsets = new RectF();
|
||||
public float mCurrentDrawnCornerRadius;
|
||||
/** The current scale we apply to the thumbnail to adjust for new left/right insets. */
|
||||
@@ -1506,6 +1507,7 @@ public class TaskView extends FrameLayout implements Reusable {
|
||||
*/
|
||||
public void setProgress(float fullscreenProgress, float parentScale, int previewWidth,
|
||||
DeviceProfile dp, PreviewPositionHelper pph) {
|
||||
mFullscreenProgress = fullscreenProgress;
|
||||
RectF insets = pph.getInsetsToDrawInFullscreen();
|
||||
|
||||
float currentInsetsLeft = insets.left * fullscreenProgress;
|
||||
|
||||
Reference in New Issue
Block a user