Skip to content

Commit 9020174

Browse files
fix: Fix the return type for getSystemBars call (#1230)
1 parent 136afba commit 9020174

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

src/main/java/io/appium/java_client/android/HasAndroidDeviceDetails.java

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,21 @@
1010

1111
public interface HasAndroidDeviceDetails extends ExecutesMethod {
1212

13-
/*
14-
Retrieve the display density of the Android device.
13+
/**
14+
Retrieve the display density of the Android device.
15+
16+
@return The density value in dpi
1517
*/
1618
default Long getDisplayDensity() {
1719
return CommandExecutionHelper.execute(this, getDisplayDensityCommand());
1820
}
1921

20-
/*
21-
Retrieve visibility and bounds information of the status and navigation bars.
22+
/**
23+
Retrieve visibility and bounds information of the status and navigation bars.
24+
25+
@return The map where keys are bar types and values are mappings of bar properties.
2226
*/
23-
default Map<String, String> getSystemBars() {
27+
default Map<String, Map<String, Object>> getSystemBars() {
2428
return CommandExecutionHelper.execute(this, getSystemBarsCommand());
2529
}
2630

0 commit comments

Comments
 (0)