Skip to content

Commit 8f41fb0

Browse files
committed
chore(android): format code for latest prettier
1 parent e84bf95 commit 8f41fb0

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

device/android/src/main/java/com/capacitorjs/plugins/device/Device.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public class Device {
2020

2121
public long getMemUsed() {
2222
final Runtime runtime = Runtime.getRuntime();
23-
final long usedMem = (runtime.totalMemory() - runtime.freeMemory());
23+
final long usedMem = runtime.totalMemory() - runtime.freeMemory();
2424
return usedMem;
2525
}
2626

local-notifications/android/src/main/java/com/capacitorjs/plugins/localnotifications/NotificationChannelManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public void listChannels(PluginCall call) {
128128
channel.put(CHANNEL_SOUND, notificationChannel.getSound());
129129
channel.put(CHANNEL_VIBRATE, notificationChannel.shouldVibrate());
130130
channel.put(CHANNEL_USE_LIGHTS, notificationChannel.shouldShowLights());
131-
channel.put(CHANNEL_LIGHT_COLOR, String.format("#%06X", (0xFFFFFF & notificationChannel.getLightColor())));
131+
channel.put(CHANNEL_LIGHT_COLOR, String.format("#%06X", 0xFFFFFF & notificationChannel.getLightColor()));
132132
Logger.debug(Logger.tags("NotificationChannel"), "visibility " + notificationChannel.getLockscreenVisibility());
133133
Logger.debug(Logger.tags("NotificationChannel"), "importance " + notificationChannel.getImportance());
134134
channels.put(channel);

push-notifications/android/src/main/java/com/capacitorjs/plugins/pushnotifications/NotificationChannelManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public void listChannels(PluginCall call) {
125125
channel.put(CHANNEL_SOUND, notificationChannel.getSound());
126126
channel.put(CHANNEL_VIBRATE, notificationChannel.shouldVibrate());
127127
channel.put(CHANNEL_USE_LIGHTS, notificationChannel.shouldShowLights());
128-
channel.put(CHANNEL_LIGHT_COLOR, String.format("#%06X", (0xFFFFFF & notificationChannel.getLightColor())));
128+
channel.put(CHANNEL_LIGHT_COLOR, String.format("#%06X", 0xFFFFFF & notificationChannel.getLightColor()));
129129
Logger.debug(Logger.tags("NotificationChannel"), "visibility " + notificationChannel.getLockscreenVisibility());
130130
Logger.debug(Logger.tags("NotificationChannel"), "importance " + notificationChannel.getImportance());
131131
channels.put(channel);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public StatusBarInfo getInfo() {
156156
info.setStyle(getStyle());
157157
info.setOverlays(getIsOverlaid());
158158
info.setVisible(isVisible);
159-
info.setColor(String.format("#%06X", (0xFFFFFF & getStatusBarColorDeprecated())));
159+
info.setColor(String.format("#%06X", 0xFFFFFF & getStatusBarColorDeprecated()));
160160
info.setHeight(getStatusBarHeight());
161161
return info;
162162
}

0 commit comments

Comments
 (0)