Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 45728a5a authored by Jordan Demeulenaere's avatar Jordan Demeulenaere
Browse files

Delete the old implementation of the QS footer actions

This CL deletes the old code of the QS footer actions. The new Compose
implementation has been enabled since September in ag/24789232.

Bug: 293569320
Test: N/A. Pure code deletion.
Flag: EXEMPT deletes unused code turned off by legacy flag.
Change-Id: If96a18f57543549ca19aa10557d03f6d23e782f0
parent a66c6094
Loading
Loading
Loading
Loading
+0 −28
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
     Copyright (C) 2022 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.
-->
<com.android.systemui.statusbar.AlphaOptimizedFrameLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="@dimen/qs_footer_action_button_size"
    android:layout_height="@dimen/qs_footer_action_button_size"
    android:visibility="gone">
    <ImageView
        android:id="@+id/icon"
        android:layout_width="@dimen/qs_footer_icon_size"
        android:layout_height="@dimen/qs_footer_icon_size"
        android:layout_gravity="center"
        android:scaleType="centerInside" />
</com.android.systemui.statusbar.AlphaOptimizedFrameLayout>
 No newline at end of file
+0 −39
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
     Copyright (C) 2022 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.
-->
<com.android.systemui.statusbar.AlphaOptimizedFrameLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="@dimen/qs_footer_action_button_size"
    android:layout_height="@dimen/qs_footer_action_button_size"
    android:background="@drawable/qs_footer_action_circle"
    android:visibility="gone">
    <TextView
        android:id="@+id/number"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textAppearance="@style/TextAppearance.QS.SecurityFooter"
        android:layout_gravity="center"
        android:textColor="?attr/onShadeInactiveVariant"
        android:textSize="18sp"/>
    <ImageView
        android:id="@+id/new_dot"
        android:layout_width="12dp"
        android:layout_height="12dp"
        android:scaleType="fitCenter"
        android:layout_gravity="bottom|end"
        android:src="@drawable/fgs_dot"
        android:contentDescription="@string/fgs_dot_content_description" />
</com.android.systemui.statusbar.AlphaOptimizedFrameLayout>
 No newline at end of file
+0 −66
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
     Copyright (C) 2022 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.
-->
<com.android.systemui.animation.view.LaunchableLinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="0dp"
    android:layout_height="@dimen/qs_security_footer_single_line_height"
    android:layout_weight="1"
    android:orientation="horizontal"
    android:paddingHorizontal="@dimen/qs_footer_padding"
    android:gravity="center_vertical"
    android:layout_marginEnd="@dimen/qs_footer_action_inset"
    android:background="@drawable/qs_security_footer_background"
    android:visibility="gone">
    <ImageView
        android:id="@+id/icon"
        android:layout_width="@dimen/qs_footer_icon_size"
        android:layout_height="@dimen/qs_footer_icon_size"
        android:gravity="start"
        android:layout_marginEnd="12dp"
        android:contentDescription="@null"
        android:src="@drawable/ic_info_outline"
        android:tint="?attr/onSurfaceVariant" />

    <TextView
        android:id="@+id/text"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_weight="1"
        android:maxLines="1"
        android:ellipsize="end"
        android:textAppearance="@style/TextAppearance.QS.SecurityFooter"
        android:textColor="?attr/onSurfaceVariant"/>

    <ImageView
        android:id="@+id/new_dot"
        android:layout_width="12dp"
        android:layout_height="12dp"
        android:scaleType="fitCenter"
        android:src="@drawable/fgs_dot"
        android:contentDescription="@string/fgs_dot_content_description"
        />

    <ImageView
        android:id="@+id/chevron_icon"
        android:layout_width="@dimen/qs_footer_icon_size"
        android:layout_height="@dimen/qs_footer_icon_size"
        android:layout_marginStart="8dp"
        android:contentDescription="@null"
        android:src="@*android:drawable/ic_chevron_end"
        android:autoMirrored="true"
        android:tint="?attr/onSurfaceVariant" />
</com.android.systemui.animation.view.LaunchableLinearLayout>
 No newline at end of file
+0 −22
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright (C) 2023 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.
  -->

<selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:state_pressed="true" android:color="?attr/onShadeActive" android:alpha="0.12" />
    <item android:state_hovered="true" android:color="?attr/onShadeActive" android:alpha="0.09" />
    <item android:color="@color/transparent" />
</selector>
 No newline at end of file
+0 −23
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
** Copyright 2022, 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"
    xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
    android:shape="oval"
    android:width="12dp"
    android:height="12dp">
    <solid android:color="?attr/tertiary" />
</shape>
 No newline at end of file
Loading