From 96d7f2f0fa7819474a8edbc210985ddcc0c9c736 Mon Sep 17 00:00:00 2001 From: joeloewi7178 Date: Thu, 8 Feb 2024 00:33:34 +0900 Subject: [PATCH] del: code references deleted classes mod: deprecated codes --- .../screen/createattendance/composable/GetSession.kt | 6 +++--- .../screen/createattendance/composable/SelectGames.kt | 6 +++--- .../main/settings/screen/DeveloperInfoScreen.kt | 10 +++++----- .../croissant/worker/AttendCheckInEventWorker.kt | 5 +---- .../joeloewi/croissant/worker/CheckSessionWorker.kt | 5 +---- 5 files changed, 13 insertions(+), 19 deletions(-) diff --git a/app/src/main/kotlin/com/joeloewi/croissant/ui/navigation/main/attendances/screen/createattendance/composable/GetSession.kt b/app/src/main/kotlin/com/joeloewi/croissant/ui/navigation/main/attendances/screen/createattendance/composable/GetSession.kt index 37b2bcb5..430bbafc 100644 --- a/app/src/main/kotlin/com/joeloewi/croissant/ui/navigation/main/attendances/screen/createattendance/composable/GetSession.kt +++ b/app/src/main/kotlin/com/joeloewi/croissant/ui/navigation/main/attendances/screen/createattendance/composable/GetSession.kt @@ -20,7 +20,7 @@ import androidx.compose.foundation.pager.rememberPagerState import androidx.compose.foundation.rememberScrollState import androidx.compose.foundation.verticalScroll import androidx.compose.material.icons.Icons -import androidx.compose.material.icons.filled.Login +import androidx.compose.material.icons.automirrored.filled.Login import androidx.compose.material.icons.filled.Star import androidx.compose.material3.Card import androidx.compose.material3.FilledTonalButton @@ -77,8 +77,8 @@ fun GetSession( verticalAlignment = Alignment.CenterVertically ) { Icon( - imageVector = Icons.Default.Login, - contentDescription = Icons.Default.Login.name + imageVector = Icons.AutoMirrored.Default.Login, + contentDescription = Icons.AutoMirrored.Default.Login.name ) Text( text = stringResource(id = R.string.go_to_hoyolab), diff --git a/app/src/main/kotlin/com/joeloewi/croissant/ui/navigation/main/attendances/screen/createattendance/composable/SelectGames.kt b/app/src/main/kotlin/com/joeloewi/croissant/ui/navigation/main/attendances/screen/createattendance/composable/SelectGames.kt index a487420b..eb29be3f 100644 --- a/app/src/main/kotlin/com/joeloewi/croissant/ui/navigation/main/attendances/screen/createattendance/composable/SelectGames.kt +++ b/app/src/main/kotlin/com/joeloewi/croissant/ui/navigation/main/attendances/screen/createattendance/composable/SelectGames.kt @@ -21,7 +21,7 @@ import androidx.compose.foundation.lazy.items import androidx.compose.foundation.lazy.rememberLazyListState import androidx.compose.foundation.selection.toggleable import androidx.compose.material.icons.Icons -import androidx.compose.material.icons.filled.ArrowForward +import androidx.compose.material.icons.automirrored.filled.ArrowForward import androidx.compose.material.icons.filled.Error import androidx.compose.material.icons.filled.Warning import androidx.compose.material3.AlertDialog @@ -193,8 +193,8 @@ fun SelectGames( verticalAlignment = Alignment.CenterVertically ) { Icon( - imageVector = Icons.Default.ArrowForward, - contentDescription = Icons.Default.ArrowForward.name + imageVector = Icons.AutoMirrored.Default.ArrowForward, + contentDescription = Icons.AutoMirrored.Default.ArrowForward.name ) Text(text = stringResource(id = R.string.next_step)) } diff --git a/app/src/main/kotlin/com/joeloewi/croissant/ui/navigation/main/settings/screen/DeveloperInfoScreen.kt b/app/src/main/kotlin/com/joeloewi/croissant/ui/navigation/main/settings/screen/DeveloperInfoScreen.kt index 53e386c5..32013313 100644 --- a/app/src/main/kotlin/com/joeloewi/croissant/ui/navigation/main/settings/screen/DeveloperInfoScreen.kt +++ b/app/src/main/kotlin/com/joeloewi/croissant/ui/navigation/main/settings/screen/DeveloperInfoScreen.kt @@ -17,8 +17,8 @@ import androidx.compose.foundation.layout.systemBars import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.shape.CircleShape import androidx.compose.material.icons.Icons +import androidx.compose.material.icons.automirrored.filled.OpenInNew import androidx.compose.material.icons.filled.Email -import androidx.compose.material.icons.filled.OpenInNew import androidx.compose.material.icons.filled.Public import androidx.compose.material3.ExperimentalMaterial3Api import androidx.compose.material3.Icon @@ -176,8 +176,8 @@ private fun DeveloperInfoContent( }, trailingContent = { Icon( - imageVector = Icons.Default.OpenInNew, - contentDescription = Icons.Default.OpenInNew.name + imageVector = Icons.AutoMirrored.Default.OpenInNew, + contentDescription = Icons.AutoMirrored.Default.OpenInNew.name ) }, overlineContent = { @@ -230,8 +230,8 @@ private fun DeveloperInfoContent( }, trailingContent = { Icon( - imageVector = Icons.Default.OpenInNew, - contentDescription = Icons.Default.OpenInNew.name + imageVector = Icons.AutoMirrored.Default.OpenInNew, + contentDescription = Icons.AutoMirrored.Default.OpenInNew.name ) }, overlineContent = { diff --git a/app/src/main/kotlin/com/joeloewi/croissant/worker/AttendCheckInEventWorker.kt b/app/src/main/kotlin/com/joeloewi/croissant/worker/AttendCheckInEventWorker.kt index 00b64174..a226e698 100644 --- a/app/src/main/kotlin/com/joeloewi/croissant/worker/AttendCheckInEventWorker.kt +++ b/app/src/main/kotlin/com/joeloewi/croissant/worker/AttendCheckInEventWorker.kt @@ -26,7 +26,6 @@ import com.joeloewi.croissant.domain.usecase.AttendanceUseCase import com.joeloewi.croissant.domain.usecase.CheckInUseCase import com.joeloewi.croissant.domain.usecase.FailureLogUseCase import com.joeloewi.croissant.domain.usecase.SuccessLogUseCase -import com.joeloewi.croissant.domain.usecase.SystemUseCase import com.joeloewi.croissant.domain.usecase.WorkerExecutionLogUseCase import com.joeloewi.croissant.util.NotificationGenerator import dagger.assisted.Assisted @@ -48,9 +47,7 @@ class AttendCheckInEventWorker @AssistedInject constructor( private val insertWorkerExecutionLogUseCase: WorkerExecutionLogUseCase.Insert, private val insertSuccessLogUseCase: SuccessLogUseCase.Insert, private val insertFailureLogUseCase: FailureLogUseCase.Insert, - private val notificationGenerator: NotificationGenerator, - private val canPerformDnsLookup: SystemUseCase.CanPerformDnsLookup, - private val isNetworkVpn: SystemUseCase.IsNetworkVpn + private val notificationGenerator: NotificationGenerator ) : CoroutineWorker( appContext = context, params = params diff --git a/app/src/main/kotlin/com/joeloewi/croissant/worker/CheckSessionWorker.kt b/app/src/main/kotlin/com/joeloewi/croissant/worker/CheckSessionWorker.kt index 4574c2c0..af44f28c 100644 --- a/app/src/main/kotlin/com/joeloewi/croissant/worker/CheckSessionWorker.kt +++ b/app/src/main/kotlin/com/joeloewi/croissant/worker/CheckSessionWorker.kt @@ -22,7 +22,6 @@ import com.joeloewi.croissant.domain.usecase.AttendanceUseCase import com.joeloewi.croissant.domain.usecase.FailureLogUseCase import com.joeloewi.croissant.domain.usecase.HoYoLABUseCase import com.joeloewi.croissant.domain.usecase.SuccessLogUseCase -import com.joeloewi.croissant.domain.usecase.SystemUseCase import com.joeloewi.croissant.domain.usecase.WorkerExecutionLogUseCase import com.joeloewi.croissant.util.NotificationGenerator import dagger.assisted.Assisted @@ -42,9 +41,7 @@ class CheckSessionWorker @AssistedInject constructor( private val insertWorkerExecutionLogUseCase: WorkerExecutionLogUseCase.Insert, private val insertSuccessLogUseCase: SuccessLogUseCase.Insert, private val insertFailureLogUseCase: FailureLogUseCase.Insert, - private val notificationGenerator: NotificationGenerator, - private val canPerformDnsLookup: SystemUseCase.CanPerformDnsLookup, - private val isNetworkVpn: SystemUseCase.IsNetworkVpn + private val notificationGenerator: NotificationGenerator ) : CoroutineWorker( appContext = context, params = params