Removing unnecessary logs
This commit is contained in:
@@ -29,7 +29,6 @@ import androidx.compose.ui.platform.LocalConfiguration
|
|||||||
import androidx.compose.ui.res.painterResource
|
import androidx.compose.ui.res.painterResource
|
||||||
import androidx.compose.ui.res.stringResource
|
import androidx.compose.ui.res.stringResource
|
||||||
import androidx.lifecycle.compose.LifecycleResumeEffect
|
import androidx.lifecycle.compose.LifecycleResumeEffect
|
||||||
import com.vitorpamplona.amethyst.logTime
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Cache for stringResource because it seems to be > 1ms function in some phones
|
* Cache for stringResource because it seems to be > 1ms function in some phones
|
||||||
@@ -135,10 +134,7 @@ fun painterRes(
|
|||||||
return cached
|
return cached
|
||||||
}
|
}
|
||||||
|
|
||||||
val loaded =
|
val loaded = painterResource(id)
|
||||||
logTime("loading icon") {
|
|
||||||
painterResource(id)
|
|
||||||
}
|
|
||||||
|
|
||||||
iconCache.put(id, loaded)
|
iconCache.put(id, loaded)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user