Выпуск WDTT Plus v2

This commit is contained in:
Ivan4537 committed 2026-07-03 16:59:27 +03:00
1 parent a8dce499eb
commit d30934ef4f
28 files changed
+8182 -355

No files matched your search

@@ -7,7 +7,6 @@ import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
import androidx.compose.foundation.lazy.rememberLazyListState
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Search
@@ -122,7 +121,10 @@ private fun AppItem.matchesVpnDetectionApp(): Boolean {
@OptIn(ExperimentalMaterial3Api::class)
@Composable
fun ExceptionsTab() {
fun ExceptionsTab(
firstVisibleItemIndex: MutableIntState = rememberSaveable { mutableIntStateOf(0) },
firstVisibleItemScrollOffset: MutableIntState = rememberSaveable { mutableIntStateOf(0) }
) {
val context = LocalContext.current.applicationContext
val scope = rememberCoroutineScope()
val settingsStore = remember { SettingsStore(context) }
@@ -350,7 +352,10 @@ fun ExceptionsTab() {
CircularProgressIndicator()
}
} else {
val listState = rememberLazyListState()
val listState = rememberRememberedLazyListState(
firstVisibleItemIndex,
firstVisibleItemScrollOffset
)
if (filteredApps.isEmpty()) {
Box(Modifier.fillMaxSize(), contentAlignment = Alignment.Center) {
Text(