Skip to content

Commit

Permalink
Spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
romtsn committed Sep 13, 2023
1 parent da4c1b2 commit f9cb721
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public DeviceInfoUtil(
sideLoadedInfo =
ContextUtils.retrieveSideLoadedInfo(context, options.getLogger(), buildInfoProvider);
final @Nullable ActivityManager.MemoryInfo memInfo =
ContextUtils.getMemInfo(context, options.getLogger());
ContextUtils.getMemInfo(context, options.getLogger());
if (memInfo != null) {
totalMem = getMemorySize(memInfo);
} else {
Expand Down Expand Up @@ -204,11 +204,11 @@ private void setDeviceIO(final @NotNull Device device, final boolean includeDyna
device.setOnline(connected);

final @Nullable ActivityManager.MemoryInfo memInfo =
ContextUtils.getMemInfo(context, options.getLogger());
ContextUtils.getMemInfo(context, options.getLogger());
if (memInfo != null && includeDynamicData) {
// in bytes
device.setFreeMemory(memInfo.availMem);
device.setLowMemory(memInfo.lowMemory);
// in bytes
device.setFreeMemory(memInfo.availMem);
device.setLowMemory(memInfo.lowMemory);
}

// this way of getting the size of storage might be problematic for storages bigger than 2GB
Expand Down

0 comments on commit f9cb721

Please sign in to comment.