Skip to content

Commit

Permalink
update naming
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianKast committed Sep 7, 2022
1 parent 0bd233e commit e06a141
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -256,10 +256,10 @@ public WindowCapability getWindowCapability(int windowID) {
int currentWindowID = windowCapability.getWindowID() != null ? windowCapability.getWindowID() : PredefinedWindows.DEFAULT_WINDOW.getValue();
if (currentWindowID == windowID) {
// Clone WindowCapability to prevent modification of stored WindowCapability in SystemCapabilityManager
WindowCapability updatedCaps = (WindowCapability) windowCapability.clone();
WindowCapability windowCapabilityCopy = (WindowCapability) windowCapability.clone();
// A null windowID is assumed to be the DefaultWindow according to the spec, but that can be hard for developers to check, so set it explicitly.
updatedCaps.setWindowID(windowID);
return updatedCaps;
windowCapabilityCopy.setWindowID(windowID);
return windowCapabilityCopy;
}
}
return null;
Expand Down

0 comments on commit e06a141

Please sign in to comment.