From 849add02ad54136a79536af8a2050a91bb9ed433 Mon Sep 17 00:00:00 2001 From: Jobobby04 Date: Thu, 20 Jan 2022 22:50:37 -0500 Subject: [PATCH] Use more performant getAllTags function --- app/src/main/java/exh/eh/EHTags.kt | 46 ++++++++++++++++-------------- 1 file changed, 24 insertions(+), 22 deletions(-) diff --git a/app/src/main/java/exh/eh/EHTags.kt b/app/src/main/java/exh/eh/EHTags.kt index 4b6a22740..3fdcc97a4 100644 --- a/app/src/main/java/exh/eh/EHTags.kt +++ b/app/src/main/java/exh/eh/EHTags.kt @@ -2,28 +2,30 @@ package exh.eh object EHTags { - fun getAllTags() = getFemale0Tags() + - getMale0Tags() + - getLanguage0Tags() + - getReclass0Tags() + - getMixed0Tags() + - getOther0Tags() + - getCosplayer0Tags() + - getParody0Tags() + - getParody1Tags() + - getCharacter0Tags() + - getCharacter1Tags() + - getCharacter2Tags() + - getGroup0Tags() + - getGroup1Tags() + - getGroup2Tags() + - getGroup3Tags() + - getArtist0Tags() + - getArtist1Tags() + - getArtist2Tags() + - getArtist3Tags() + - getArtist4Tags() + - getArtist5Tags() + fun getAllTags() = listOf( + getFemale0Tags(), + getMale0Tags(), + getLanguage0Tags(), + getReclass0Tags(), + getMixed0Tags(), + getOther0Tags(), + getCosplayer0Tags(), + getParody0Tags(), + getParody1Tags(), + getCharacter0Tags(), + getCharacter1Tags(), + getCharacter2Tags(), + getGroup0Tags(), + getGroup1Tags(), + getGroup2Tags(), + getGroup3Tags(), + getArtist0Tags(), + getArtist1Tags(), + getArtist2Tags(), + getArtist3Tags(), + getArtist4Tags(), + getArtist5Tags(), + ).flatten() fun getReclass0Tags() = listOf( "reclass:artistcg",