aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Pfau <pfau@peak3d.de>2019-11-12 19:15:09 +0100
committerGitHub <noreply@github.com>2019-11-12 19:15:09 +0100
commit6775f0d81d7ddbd1629a5e35c385db1da0c36ca8 (patch)
tree76574a5de9354641a9b59905e53cba28122e6a34
parentc712305a492c0e9fc37f885020460bfcb7cdef74 (diff)
parent6ed6fdf33a1be1f2c28ef198afbcdebb41f239e2 (diff)
Merge pull request #16867 from peak3d/backport_fetch
[Android] fetchDisplayMode only for SDK>=24
-rw-r--r--xbmc/windowing/android/AndroidUtils.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/xbmc/windowing/android/AndroidUtils.cpp b/xbmc/windowing/android/AndroidUtils.cpp
index 14314d744b..a8bae0f0a2 100644
--- a/xbmc/windowing/android/AndroidUtils.cpp
+++ b/xbmc/windowing/android/AndroidUtils.cpp
@@ -316,7 +316,8 @@ bool CAndroidUtils::ProbeResolutions(std::vector<RESOLUTION_INFO> &resolutions)
bool CAndroidUtils::UpdateDisplayModes()
{
- fetchDisplayModes();
+ if (CJNIBase::GetSDKVersion() >= 24)
+ fetchDisplayModes();
return true;
}