Skip to content

Commit 1757d41

Browse files
committed
app: [android] fix compatibility with older Android versions
Previously, setHighRefreshRate requires APIs restricted to Android 30, or higher. Tested on Android 6.0.1 (released on 2015).
1 parent ff28ced commit 1757d41

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/GioView.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,10 @@ private void setNavigationColor(int color, int luminance) {
260260
}
261261

262262
private void setHighRefreshRate() {
263+
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.R) {
264+
return;
265+
}
266+
263267
Context context = getContext();
264268
Display display = context.getDisplay();
265269
Display.Mode[] supportedModes = display.getSupportedModes();

0 commit comments

Comments
 (0)