mp3agic icon indicating copy to clipboard operation
mp3agic copied to clipboard

EncodedText toString() is Reserved By Kotlin

Open michaelryannewell opened this issue 3 years ago • 0 comments

The function should be renamed to something like:


    fun toEncodedString(): String {
        return try {
            bytesToString(value, characterSetForTextEncoding(textEncoding))
        } catch (e: CharacterCodingException) {
            ""
        }
    }

Otherwise, Kotlin uses the .toString() function from Android OS resulting in a string "Java.function.etc"

michaelryannewell avatar Jan 13 '22 18:01 michaelryannewell