music: make string hashing more resillient

Make string hashing a custom-made function that actually outputs to a
long.

This prevents overflows from causing a collision.
This commit is contained in:
OxygenCobalt
2022-07-27 09:34:23 -06:00
parent fe16ffb5bf
commit f93d5f1a69
6 changed files with 25 additions and 53 deletions
@@ -1,9 +0,0 @@
<?xml version="1.0" encoding="utf-8"?><!--
This is part of a stopgap animation used by QueueFragment until it's fully integrated
into PlaybackLayout.
-->
<translate xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="500"
android:fromYDelta="100%"
android:interpolator="@android:interpolator/decelerate_quint"
android:toYDelta="0%" />
@@ -1,9 +0,0 @@
<?xml version="1.0" encoding="utf-8"?><!--
This is part of a stopgap animation used by QueueFragment until it's fully integrated
into PlaybackLayout.
-->
<alpha xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="500"
android:fromAlpha="1"
android:interpolator="@android:interpolator/decelerate_quint"
android:toAlpha="0" />
@@ -1,9 +0,0 @@
<?xml version="1.0" encoding="utf-8"?><!--
This is part of a stopgap animation used by QueueFragment until it's fully integrated
into PlaybackLayout.
-->
<alpha xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="500"
android:fromAlpha="0"
android:interpolator="@android:interpolator/decelerate_quint"
android:toAlpha="1" />
@@ -1,9 +0,0 @@
<?xml version="1.0" encoding="utf-8"?><!--
This is part of a stopgap animation used by QueueFragment until it's fully integrated
into PlaybackLayout.
-->
<translate xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="500"
android:fromYDelta="0%"
android:interpolator="@android:interpolator/decelerate_quint"
android:toYDelta="100%" />