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

Commit 6708ac40 authored by Alan Viverette's avatar Alan Viverette Committed by android-build-merger
Browse files

Move layer-list to be top-level element in seek bar progress

automerge: bac8e12e

* commit 'bac8e12e':
  Move layer-list to be top-level element in seek bar progress
parents 6bafb866 bac8e12e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1241,7 +1241,7 @@ public class ProgressBar extends View {
    private synchronized void doRefreshProgress(int id, int progress, boolean fromUser,
            boolean callBackToApp) {
        float scale = mMax > 0 ? (float) progress / (float) mMax : 0;
        final Drawable d = mCurrentDrawable.getCurrent();
        final Drawable d = mCurrentDrawable;
        if (d != null) {
            Drawable progressDrawable = null;

+27 −21
Original line number Diff line number Diff line
@@ -14,29 +14,35 @@
     limitations under the License.
-->

<selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:state_enabled="false">
        <nine-patch android:src="@drawable/scrubber_track_mtrl_alpha"
            android:tint="?attr/colorControlNormal" />
    </item>
    <item>
        <layer-list>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:id="@id/background">
        <nine-patch android:src="@drawable/scrubber_track_mtrl_alpha"
                    android:tint="?attr/colorControlNormal" />
    </item>
    <item android:id="@id/secondaryProgress">
        <scale android:scaleWidth="100%">
            <selector>
                <item android:state_enabled="false">
                    <color android:color="@color/transparent" />
                </item>
                <item>
                    <nine-patch android:src="@drawable/scrubber_primary_mtrl_alpha"
                                android:tint="?attr/colorControlNormal" />
                </item>
            </selector>
        </scale>
    </item>
    <item android:id="@id/progress">
        <scale android:scaleWidth="100%">
            <selector>
                <item android:state_enabled="false">
                    <color android:color="@color/transparent" />
                </item>
                <item>
                    <nine-patch android:src="@drawable/scrubber_primary_mtrl_alpha"
                                android:tint="?attr/colorControlActivated" />
                </item>
            </selector>
        </scale>
    </item>
</layer-list>
 No newline at end of file
    </item>
</selector>