diff options
Diffstat (limited to 'quickstep/src/com/android/quickstep/views/RecentsViewContainer.java')
-rw-r--r-- | quickstep/src/com/android/quickstep/views/RecentsViewContainer.java | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/quickstep/src/com/android/quickstep/views/RecentsViewContainer.java b/quickstep/src/com/android/quickstep/views/RecentsViewContainer.java index 15925b571..a951de922 100644 --- a/quickstep/src/com/android/quickstep/views/RecentsViewContainer.java +++ b/quickstep/src/com/android/quickstep/views/RecentsViewContainer.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2018 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.android.quickstep.views; import static com.android.launcher3.userevent.nano.LauncherLogProto.Action.Touch.TAP; @@ -9,7 +25,6 @@ import android.util.AttributeSet; import android.util.FloatProperty; import android.view.Gravity; import android.view.MotionEvent; -import android.view.View; import com.android.launcher3.InsettableFrameLayout; import com.android.launcher3.R; @@ -31,7 +46,7 @@ public class RecentsViewContainer extends InsettableFrameLayout { private final Rect mTempRect = new Rect(); private RecentsView mRecentsView; - private View mClearAllButton; + private ClearAllButton mClearAllButton; public RecentsViewContainer(Context context, AttributeSet attrs) { super(context, attrs); @@ -48,13 +63,15 @@ public class RecentsViewContainer extends InsettableFrameLayout { mRecentsView.dismissAllTasks(); }); - mRecentsView = (RecentsView) findViewById(R.id.overview_panel); + mRecentsView = findViewById(R.id.overview_panel); final InsettableFrameLayout.LayoutParams params = (InsettableFrameLayout.LayoutParams) mClearAllButton.getLayoutParams(); params.gravity = Gravity.TOP | (RecentsView.FLIP_RECENTS ? Gravity.START : Gravity.END); mClearAllButton.setLayoutParams(params); mClearAllButton.forceHasOverlappingRendering(false); + mRecentsView.setClearAllButton(mClearAllButton); + mClearAllButton.setRecentsView(mRecentsView); } @Override |