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

Commit 633f8ba7 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add @ChecksSdkIntAtLeast to SettingsThemeHelper.isExpressiveTheme()" into main

parents 1fba3ec7 75959fd2
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) {