Skip to content

Commit cf0328c

Browse files
committed
setAttributes?
1 parent 6813f12 commit cf0328c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

app/src/main/java/com/cafeed28/omori/OmoWebView.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@ private void setFrameRate(Window window, int frameRate) {
8383

8484
if (targetMode != null) {
8585
Debug.i().log(Log.INFO, "targetMode(%d): %s", targetMode.getModeId(), targetMode);
86-
window.getAttributes().preferredRefreshRate = targetMode.getRefreshRate();
86+
var attributes = window.getAttributes();
87+
attributes.preferredRefreshRate = targetMode.getRefreshRate();
88+
window.setAttributes(attributes);
8789
}
8890
}
8991

0 commit comments

Comments
 (0)