Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielcoderX committed Aug 31, 2024
1 parent b29431d commit def2c5c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/src/main/java/org/bepass/oblivion/utils/ThemeHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ public void updateActivityBackground(View view) {
}

// Configure status bar based on theme
configureStatusBar(view.getContext() instanceof Activity ? (Activity) view.getContext() : null);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
configureStatusBar(view.getContext() instanceof Activity ? (Activity) view.getContext() : null);
}
}
@RequiresApi(api = Build.VERSION_CODES.M)
private void configureStatusBar(Activity activity) {
Expand Down

0 comments on commit def2c5c

Please sign in to comment.