refactor: remove unneeded code

This commit is contained in:
FunkyMuse 2023-08-28 14:17:01 +02:00
parent f057712508
commit db064a25a1
2 changed files with 0 additions and 7 deletions

View file

@ -4,12 +4,8 @@ import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import com.simplemobiletools.commons.R
import com.simplemobiletools.commons.compose.extensions.AdjustNavigationBarColors
import com.simplemobiletools.commons.compose.screens.LicenseScreen
import com.simplemobiletools.commons.compose.theme.AppThemeSurface
import com.simplemobiletools.commons.extensions.launchViewIntent
@ -25,8 +21,6 @@ class LicenseActivity : ComponentActivity() {
val licenseMask = remember { intent.getLongExtra(APP_LICENSES, 0) or LICENSE_KOTLIN }
val thirdPartyLicenses = remember { initLicenses().filter { licenseMask and it.id != 0L }.toImmutableList() }
AppThemeSurface {
var canScroll by remember { mutableStateOf<Boolean?>(null) }
AdjustNavigationBarColors(canScroll)
LicenseScreen(
goBack = ::finish,
thirdPartyLicenses = thirdPartyLicenses,

View file

@ -62,7 +62,6 @@ class ManageBlockedNumbersActivity : BaseSimpleActivity() {
maybeSetDefaultCallerIdApp()
}
}
val isBlockingHiddenNumbers by config.isBlockingHiddenNumbers.collectAsStateWithLifecycle(initialValue = config.blockHiddenNumbers)
val isBlockingUnknownNumbers by config.isBlockingUnknownNumbers.collectAsStateWithLifecycle(initialValue = config.blockUnknownNumbers)
val isDialer = remember {