Skip to content

Set track as ringtone is not working

Description

When trying to set a track as a ringtone, it doesn't work.

2020-07-07 09:30:22.162 22534-22534/org.videolan.vlc.debug E/VLC/AudioUtil: error setting ringtone
    java.lang.IllegalArgumentException: Invalid token /storage/emulated/0/Movies/Copyright free medias/audio/Jane van Noise - Agent of Nothing/08_Jane van Noise - 20 Bucks.MP3
        at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:172)
        at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:142)
        at android.content.ContentProviderProxy.delete(ContentProviderNative.java:624)
        at android.content.ContentResolver.delete(ContentResolver.java:2282)
        at android.content.ContentResolver.delete(ContentResolver.java:2248)
        at org.videolan.vlc.gui.helpers.AudioUtil$setRingtone$2$uri$1.invokeSuspend(AudioUtil.kt:85)
        at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
        at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:56)
        at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:738)
        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)

Expected behavior

Actual behavior

Steps to reproduce

  1. Add the overflow button of a track
  2. Set as ringtone

Screenshot / video

Context

App version

Android version

Device model

App mode

Smartphone

TV

Auto