Skip to content
This repository has been archived by the owner on Sep 19, 2023. It is now read-only.

Commit

Permalink
Merge pull request #17 from Kuama-IT/feature/fix_flac_read
Browse files Browse the repository at this point in the history
Fix concurrency edit/read all Projection list
  • Loading branch information
LucJosin committed Feb 10, 2022
2 parents c6fbd53 + 7346a24 commit 3f393d1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.lucasjosino.on_audio_edit.extensions

import android.util.Log
import org.jaudiotagger.tag.FieldKey

fun String.tryInt(key: Int): Any? {
Expand Down Expand Up @@ -34,10 +33,11 @@ fun String.tryInt(key: Int): Any? {
}
}

fun ArrayList<FieldKey>.checkFlac(data: String): ArrayList<FieldKey> {
val tmpArray: ArrayList<FieldKey> = this
fun List<FieldKey>.checkFlac(data: String): List<FieldKey> {
if (data.endsWith(".flac")) {
tmpArray.removeAt(19)
val mutableList = this.toMutableList();
mutableList.remove(FieldKey.COVER_ART)
return mutableList.toList()
}
return tmpArray
return this
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ package com.lucasjosino.on_audio_edit.utils

import org.jaudiotagger.tag.FieldKey

fun getAllProjection() : ArrayList<FieldKey> = allProjection
fun getAllProjection() : List<FieldKey> = allProjection

private var allProjection = arrayListOf(
private var allProjection = listOf(
FieldKey.ACOUSTID_FINGERPRINT, // 0
FieldKey.ACOUSTID_ID, // 1
FieldKey.ALBUM, // 2
Expand Down

0 comments on commit 3f393d1

Please sign in to comment.