Skip to content

Commit

Permalink
Appcompat: migrate more to appcompat
Browse files Browse the repository at this point in the history
  • Loading branch information
Jvr authored Mar 7, 2024
1 parent 7decb79 commit 6bb65ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/kotlin/com/apkupdater/ui/theme/Theme.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.apkupdater.ui.theme

import android.app.Activity
import androidx.appcompat.app.AppCompatActivity
import android.os.Build
import androidx.compose.material3.ColorScheme
import androidx.compose.material3.MaterialTheme
Expand Down Expand Up @@ -37,7 +37,7 @@ fun AppTheme(
val view = LocalView.current
if (!view.isInEditMode) {
SideEffect {
val activity = view.context as Activity
val activity = view.context as AppCompatActivity

// Set Navigation Bar color
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
Expand Down

0 comments on commit 6bb65ac

Please sign in to comment.