From fe634af0c4e0981d9e3d15bd87433601a742634b Mon Sep 17 00:00:00 2001 From: Kevin Date: Thu, 2 May 2019 14:53:08 -0700 Subject: Apply insets correctly to fallback Recents Go Insets were not being correctly consumed by the root view in the fallback recents activity. This CL properly passes on the system insets to the recents view so that tasks flow under the system insets. Bug: 131853975 Test: Have separate default launcher, go to recents, go to landscape, tasks scroll under status bar Change-Id: I16f78da896522c5cf41951817747a24cd5cfe32c --- .../src/com/android/quickstep/RecentsActivity.java | 2 +- .../fallback/GoRecentsActivityRootView.java | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) (limited to 'go') diff --git a/go/quickstep/src/com/android/quickstep/RecentsActivity.java b/go/quickstep/src/com/android/quickstep/RecentsActivity.java index 9fb80679e..078f3a5ff 100644 --- a/go/quickstep/src/com/android/quickstep/RecentsActivity.java +++ b/go/quickstep/src/com/android/quickstep/RecentsActivity.java @@ -42,7 +42,7 @@ public final class RecentsActivity extends BaseRecentsActivity { @Override protected void reapplyUi() { - //TODO: Implement this depending on how insets will affect the view. + // No-op. Insets are automatically re-applied in the root view. } @Override diff --git a/go/quickstep/src/com/android/quickstep/fallback/GoRecentsActivityRootView.java b/go/quickstep/src/com/android/quickstep/fallback/GoRecentsActivityRootView.java index c0ebcb5a4..b550011f5 100644 --- a/go/quickstep/src/com/android/quickstep/fallback/GoRecentsActivityRootView.java +++ b/go/quickstep/src/com/android/quickstep/fallback/GoRecentsActivityRootView.java @@ -16,7 +16,10 @@ package com.android.quickstep.fallback; import android.content.Context; +import android.graphics.Insets; +import android.graphics.Rect; import android.util.AttributeSet; +import android.view.WindowInsets; import com.android.launcher3.util.TouchController; import com.android.launcher3.views.BaseDragLayer; @@ -30,5 +33,23 @@ public final class GoRecentsActivityRootView extends BaseDragLayer