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

Unverified Commit e17ece38 authored by LuK1337's avatar LuK1337
Browse files

Revert "Etar: Hardcode Build.VERSION_CODES.VANILLA_ICE_CREAM to 35"

This reverts commit be205f66.

Change-Id: I2ada51d91abb178fc05ec0613db3f3b6140f3144
parent a776cef0
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -42,7 +42,7 @@ public class DynamicTheme {
        activity.setTheme(currentTheme);

        // Only required since Android 15
        if (Build.VERSION.SDK_INT >= 35) {
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.VANILLA_ICE_CREAM) {
            setupEdgeToEdge(activity);
        }
    }
@@ -224,7 +224,7 @@ public class DynamicTheme {
        }
    }

    @RequiresApi(35)
    @RequiresApi(Build.VERSION_CODES.VANILLA_ICE_CREAM)
    private static void setupEdgeToEdge(@NonNull Activity activity) {
        Window window = activity.getWindow();
        View rootView = activity.getWindow().getDecorView().getRootView();
@@ -242,7 +242,7 @@ public class DynamicTheme {
        setSystemBarsColors(activity);
    }

    @RequiresApi(35)
    @RequiresApi(Build.VERSION_CODES.VANILLA_ICE_CREAM)
    private static void setSystemBarsColors(@NonNull Activity activity) {
        boolean lightAppearance = !DynamicTheme.isSystemInDarkTheme(activity);
        View rootView = activity.getWindow().getDecorView().getRootView();