Skip to content

Commit

Permalink
Remove wrong TargetApi annotation
Browse files Browse the repository at this point in the history
These functions can be called from below Lollipop.
  • Loading branch information
markusfisch committed Jan 19, 2025
1 parent fb08b8f commit e1a5c05
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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) {
Expand All @@ -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) {
Expand Down

0 comments on commit e1a5c05

Please sign in to comment.