From e1a5c05b497a766ad57967eac8bdcbeff8a6e493 Mon Sep 17 00:00:00 2001 From: Markus Fisch Date: Sun, 19 Jan 2025 18:20:52 +0100 Subject: [PATCH] Remove wrong TargetApi annotation These functions can be called from below Lollipop. --- .../de/markusfisch/android/pielauncher/view/SystemBars.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/src/main/java/de/markusfisch/android/pielauncher/view/SystemBars.java b/app/src/main/java/de/markusfisch/android/pielauncher/view/SystemBars.java index 089e8359..3dd472cf 100644 --- a/app/src/main/java/de/markusfisch/android/pielauncher/view/SystemBars.java +++ b/app/src/main/java/de/markusfisch/android/pielauncher/view/SystemBars.java @@ -1,6 +1,5 @@ package de.markusfisch.android.pielauncher.view; -import android.annotation.TargetApi; import android.graphics.Insets; import android.graphics.Rect; import android.os.Build; @@ -20,7 +19,6 @@ public static void setTransparentSystemBars(Window window) { setTransparentSystemBars(window, Preferences.IMMERSIVE_MODE_DISABLED); } - @TargetApi(Build.VERSION_CODES.LOLLIPOP) public static void setTransparentSystemBars(Window window, int immersive) { if (window == null || Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) { @@ -39,7 +37,6 @@ public static void setTransparentSystemBars(Window window, int immersive) { } } - @TargetApi(Build.VERSION_CODES.LOLLIPOP) public static void setSystemUIVisibility(Window window, int immersive) { if (window == null || Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) {