Skip to content

Commit

Permalink
removed list animations because of crashes
Browse files Browse the repository at this point in the history
  • Loading branch information
Sajeg committed Nov 17, 2024
1 parent e8b2998 commit f73a2de
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions app/src/main/java/com/sajeg/questrpc/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@ import android.content.pm.ApplicationInfo
import android.net.Uri
import android.os.Bundle
import android.provider.Settings
import android.util.Log
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.compose.animation.animateContentSize
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
Expand Down Expand Up @@ -333,7 +331,7 @@ fun RightScreen(modifier: Modifier) {
LazyColumn(
modifier = modifier
.padding(15.dp)
.animateContentSize()
// .animateContentSize()
) {
item {
Column {
Expand All @@ -347,7 +345,7 @@ fun RightScreen(modifier: Modifier) {
)
}
}
items(apps, { it }) { appInfo ->
items(apps) { appInfo ->
if (excludedApps.contains(appInfo.packageName) ||
newExcludedApps.contains(appInfo.packageName) ||
storePackages.contains(appInfo.packageName)
Expand Down Expand Up @@ -380,7 +378,7 @@ fun RightScreen(modifier: Modifier) {
style = MaterialTheme.typography.headlineLarge
)
}
items(storeNames, { it.packageName }) { app ->
items(storeNames) { app ->
if (excludedApps.contains(app.packageName) || newExcludedApps.contains(app.packageName)) {
return@items
}
Expand All @@ -404,13 +402,13 @@ fun RightScreen(modifier: Modifier) {
style = MaterialTheme.typography.headlineLarge
)
}
items(newExcludedApps, { it }) { packageName ->
items(newExcludedApps) { packageName ->
ExcludedAppsCard(packageName, context, modifier) {
AppManager().removeExcludedApp(packageName, context)
newExcludedApps.remove(packageName)
}
}
items(excludedApps, { it }) { packageName ->
items(excludedApps) { packageName ->
ExcludedAppsCard(packageName, context, modifier) {
AppManager().removeExcludedApp(packageName, context)
excludedApps.remove(packageName)
Expand Down

0 comments on commit f73a2de

Please sign in to comment.