Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 75959fd2 authored by Hai Zhang's avatar Hai Zhang
Browse files

Add @ChecksSdkIntAtLeast to SettingsThemeHelper.isExpressiveTheme()

To make everyone's life easier with the min API check.

Bug: 375480015
Flag: EXEMPT refactor
Test: build
Change-Id: I5bebdea0e39f887fff8a35213156f0ddbcb3b86b
parent 9e0b07d0
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -20,6 +20,7 @@ import android.app.Activity
import android.content.Context
import android.content.ContextWrapper
import android.os.Build
import androidx.annotation.ChecksSdkIntAtLeast
import com.android.settingslib.widget.theme.flags.Flags

object SettingsThemeHelper {
@@ -32,6 +33,7 @@ object SettingsThemeHelper {
        return result.contains("tablet")
    }

    @ChecksSdkIntAtLeast(Build.VERSION_CODES.BAKLAVA)
    @JvmStatic
    fun isExpressiveTheme(context: Context): Boolean {
        if (Build.VERSION.SDK_INT < Build.VERSION_CODES.BAKLAVA) {