File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
status-bar/android/src/main/java/com/capacitorjs/plugins/statusbar Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ public class StatusBar {
2424 private final AppCompatActivity activity ;
2525 private String currentStyle = "DEFAULT" ;
2626
27+ @ SuppressWarnings ("deprecation" )
2728 public StatusBar (AppCompatActivity activity , StatusBarConfig config , ChangeListener listener ) {
2829 // save initial color of the status bar
2930 this .activity = activity ;
@@ -117,6 +118,7 @@ private boolean getIsOverlaid() {
117118 );
118119 }
119120
121+ @ SuppressWarnings ("deprecation" )
120122 public StatusBarInfo getInfo () {
121123 Window window = activity .getWindow ();
122124 WindowInsetsCompat windowInsetsCompat = ViewCompat .getRootWindowInsets (window .getDecorView ());
@@ -140,6 +142,7 @@ private String getStyle() {
140142 return style ;
141143 }
142144
145+ @ SuppressWarnings ("deprecation" )
143146 private int getStatusBarHeight () {
144147 DisplayMetrics metrics = activity .getResources ().getDisplayMetrics ();
145148
You can’t perform that action at this time.
0 commit comments