Skip to content

Commit

Permalink
Convert to val
Browse files Browse the repository at this point in the history
  • Loading branch information
Rawa authored and Pururun committed Oct 27, 2023
1 parent e51ca63 commit a275b7b
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import android.content.res.Configuration
import android.net.VpnService
import android.os.Bundle
import android.util.Log
import androidx.activity.result.ActivityResultLauncher
import androidx.activity.result.contract.ActivityResultContracts
import androidx.compose.runtime.collectAsState
import androidx.compose.ui.platform.ComposeView
Expand Down Expand Up @@ -57,7 +56,7 @@ import org.koin.android.ext.android.getKoin
import org.koin.core.context.loadKoinModules

open class MainActivity : FragmentActivity() {
private var requestNotificationPermissionLauncher: ActivityResultLauncher<String> =
private val requestNotificationPermissionLauncher =
registerForActivityResult(ActivityResultContracts.RequestPermission()) {
// NotificationManager.areNotificationsEnabled is used to check the state rather than
// handling the callback value.
Expand Down Expand Up @@ -174,7 +173,6 @@ open class MainActivity : FragmentActivity() {
}

private fun launchDeviceStateHandler(): Job {

return lifecycleScope.launch {
launch {
deviceRepository.deviceState
Expand Down

0 comments on commit a275b7b

Please sign in to comment.