Skip to content

Commit f0c93e8

Browse files
committed
fix: address lint errors
Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
1 parent d1bcbc2 commit f0c93e8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ui/components/src/main/kotlin/com/getcode/ui/components/restrictions/RestrictionBlockingView.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import android.app.Activity
44
import android.content.ActivityNotFoundException
55
import android.content.Intent
66
import android.net.Uri
7+
import androidx.activity.compose.LocalActivity
78
import androidx.compose.foundation.background
89
import androidx.compose.foundation.layout.Box
910
import androidx.compose.foundation.layout.Column
@@ -34,7 +35,7 @@ fun ContentRestrictedView(
3435
lateinit var buttonText: String
3536
lateinit var buttonAction: () -> Unit
3637

37-
val activity = LocalContext.current as Activity
38+
val activity = LocalActivity.current!!
3839
when(restrictionType) {
3940
RestrictionType.FORCE_UPGRADE -> {
4041
titleText = stringResource(R.string.title_updateRequired)

0 commit comments

Comments
 (0)