Skip to content

Commit

Permalink
Merge pull request #11382 from MartijnKaijser/mode_test
Browse files Browse the repository at this point in the history
[android] Enable DisplayMode API on all devices with Nougat
  • Loading branch information
MartijnKaijser committed Jan 6, 2017
2 parents fac5a22 + 9603d84 commit e9288e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xbmc/windowing/egl/EGLNativeTypeAndroid.cpp
Expand Up @@ -147,7 +147,7 @@ void CEGLNativeTypeAndroid::Initialize()
std::string displaySize;
m_width = m_height = 0;

if (CJNIBuild::DEVICE != "foster") // Buggy implementation of DisplayMode API on SATV
if (CJNIBuild::DEVICE != "foster" || CJNIBase::GetSDKVersion() >= 24) // Buggy implementation of DisplayMode API on SATV
{
fetchDisplayModes();
for (auto res : s_res_displayModes)
Expand Down

0 comments on commit e9288e0

Please sign in to comment.