Skip to content
Snippets Groups Projects
Commit 3def99de authored by Adithya R's avatar Adithya R Committed by Dhina17
Browse files

SystemUI: Add app rows to volume dialog

Expand app rows instead of opening a settings panel.
Uses the per-app volume API.

Partially inspired by the patch from Android 11
"SystemUI: Add app volume row to volume dialog"
by cjybyjk <cjybyjk@zjnu.edu.cn>

Change-Id: I3728dfc4f39a06b96abfd571abb8858426e70f45
parent df6d9ea2
No related branches found
No related tags found
No related merge requests found
......@@ -35,11 +35,7 @@
android:right="@dimen/volume_slider_icon_inset">
<rotate
android:fromDegrees="-270"
android:toDegrees="-270">
<!-- A placeholder drawable is required here - it'll be replaced in code. -->
<com.android.systemui.util.AlphaTintDrawableWrapper
android:drawable="@drawable/ic_volume_media"
android:tint="?androidprv:attr/colorAccentPrimaryVariant" />
</rotate>
android:toDegrees="-270"
android:drawable="@drawable/volume_row_seekbar_progress_icon" />
</item>
</layer-list>
\ No newline at end of file
</layer-list>
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (C) 2021 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.util.AlphaTintDrawableWrapper
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
android:drawable="@drawable/ic_volume_media"
android:tint="?androidprv:attr/colorAccentPrimaryVariant" />
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment