Skip to content

Commit b6051db

Browse files
chore(status-bar): run npm run fmt
1 parent a3a18e9 commit b6051db

File tree

1 file changed

+25
-40
lines changed

1 file changed

+25
-40
lines changed

status-bar/android/src/main/java/com/capacitorjs/plugins/statusbar/StatusBarPlugin.java

Lines changed: 25 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,10 @@ public void setStyle(final PluginCall call) {
6464
return;
6565
}
6666

67-
getBridge()
68-
.executeOnMainThread(
69-
() -> {
70-
implementation.setStyle(style);
71-
call.resolve();
72-
}
73-
);
67+
getBridge().executeOnMainThread(() -> {
68+
implementation.setStyle(style);
69+
call.resolve();
70+
});
7471
}
7572

7673
@PluginMethod
@@ -81,42 +78,33 @@ public void setBackgroundColor(final PluginCall call) {
8178
return;
8279
}
8380

84-
getBridge()
85-
.executeOnMainThread(
86-
() -> {
87-
try {
88-
final int parsedColor = WebColor.parseColor(color.toUpperCase(Locale.ROOT));
89-
implementation.setBackgroundColor(parsedColor);
90-
call.resolve();
91-
} catch (IllegalArgumentException ex) {
92-
call.reject("Invalid color provided. Must be a hex string (ex: #ff0000");
93-
}
94-
}
95-
);
81+
getBridge().executeOnMainThread(() -> {
82+
try {
83+
final int parsedColor = WebColor.parseColor(color.toUpperCase(Locale.ROOT));
84+
implementation.setBackgroundColor(parsedColor);
85+
call.resolve();
86+
} catch (IllegalArgumentException ex) {
87+
call.reject("Invalid color provided. Must be a hex string (ex: #ff0000");
88+
}
89+
});
9690
}
9791

9892
@PluginMethod
9993
public void hide(final PluginCall call) {
10094
// Hide the status bar.
101-
getBridge()
102-
.executeOnMainThread(
103-
() -> {
104-
implementation.hide();
105-
call.resolve();
106-
}
107-
);
95+
getBridge().executeOnMainThread(() -> {
96+
implementation.hide();
97+
call.resolve();
98+
});
10899
}
109100

110101
@PluginMethod
111102
public void show(final PluginCall call) {
112103
// Show the status bar.
113-
getBridge()
114-
.executeOnMainThread(
115-
() -> {
116-
implementation.show();
117-
call.resolve();
118-
}
119-
);
104+
getBridge().executeOnMainThread(() -> {
105+
implementation.show();
106+
call.resolve();
107+
});
120108
}
121109

122110
@PluginMethod
@@ -128,13 +116,10 @@ public void getInfo(final PluginCall call) {
128116
@PluginMethod
129117
public void setOverlaysWebView(final PluginCall call) {
130118
final Boolean overlay = call.getBoolean("overlay", true);
131-
getBridge()
132-
.executeOnMainThread(
133-
() -> {
134-
implementation.setOverlaysWebView(overlay);
135-
call.resolve();
136-
}
137-
);
119+
getBridge().executeOnMainThread(() -> {
120+
implementation.setOverlaysWebView(overlay);
121+
call.resolve();
122+
});
138123
}
139124

140125
private JSObject toJSObject(StatusBarInfo info) {

0 commit comments

Comments
 (0)