Merge "Remove QS drag handle" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
a900a21aae
@@ -1,22 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- 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.
|
||||
-->
|
||||
<shape
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle" >
|
||||
<solid
|
||||
android:color="?android:attr/textColorSecondary" />
|
||||
<corners android:radius="2dp" />
|
||||
</shape>
|
||||
@@ -56,18 +56,4 @@
|
||||
<include android:id="@+id/qs_customize" layout="@layout/qs_customize_panel"
|
||||
android:visibility="gone" />
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/qs_drag_handle_view"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:elevation="4dp"
|
||||
android:paddingBottom="5dp">
|
||||
<View
|
||||
android:layout_width="46dp"
|
||||
android:layout_height="3dp"
|
||||
android:background="@drawable/qs_footer_drag_handle" />
|
||||
</FrameLayout>
|
||||
|
||||
|
||||
</com.android.systemui.qs.QSContainerImpl>
|
||||
|
||||
@@ -60,7 +60,6 @@ public class QSContainerImpl extends FrameLayout {
|
||||
private QuickStatusBarHeader mHeader;
|
||||
private float mQsExpansion;
|
||||
private QSCustomizer mQSCustomizer;
|
||||
private View mDragHandle;
|
||||
private NonInterceptingScrollView mQSPanelContainer;
|
||||
|
||||
private View mBackground;
|
||||
@@ -83,7 +82,6 @@ public class QSContainerImpl extends FrameLayout {
|
||||
mQSDetail = findViewById(R.id.qs_detail);
|
||||
mHeader = findViewById(R.id.header);
|
||||
mQSCustomizer = findViewById(R.id.qs_customize);
|
||||
mDragHandle = findViewById(R.id.qs_drag_handle_view);
|
||||
mBackground = findViewById(R.id.quick_settings_background);
|
||||
mHeader.getHeaderQsPanel().setMediaVisibilityChangedListener((visible) -> {
|
||||
if (mHeader.getHeaderQsPanel().isShown()) {
|
||||
@@ -239,8 +237,6 @@ public class QSContainerImpl extends FrameLayout {
|
||||
int scrollBottom = calculateContainerBottom();
|
||||
setBottom(getTop() + height);
|
||||
mQSDetail.setBottom(getTop() + scrollBottom);
|
||||
// Pin the drag handle to the bottom of the panel.
|
||||
mDragHandle.setTranslationY(scrollBottom - mDragHandle.getHeight());
|
||||
mBackground.setTop(mQSPanelContainer.getTop());
|
||||
updateBackgroundBottom(scrollBottom, animate);
|
||||
}
|
||||
@@ -277,7 +273,6 @@ public class QSContainerImpl extends FrameLayout {
|
||||
|
||||
public void setExpansion(float expansion) {
|
||||
mQsExpansion = expansion;
|
||||
mDragHandle.setAlpha(1.0f - expansion);
|
||||
updateExpansion();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user