Skip to content

Commit

Permalink
android: Fix problem with guide grid colors.
Browse files Browse the repository at this point in the history
assets file system does not support file handles.

Refs #13454
  • Loading branch information
bennettpeter committed Jun 17, 2019
1 parent c51c7d7 commit 9ee9894
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mythtv/libs/libmythui/mythuiguidegrid.cpp
Expand Up @@ -725,12 +725,14 @@ bool MythUIGuideGrid::parseDefaultCategoryColors(QMap<QString, QString> &catColo
break;
}

#ifndef Q_OS_ANDROID // Android does not get a file handle for assets file system
if (f.handle() == -1)
{
LOG(VB_GENERAL, LOG_ERR, LOC + QString("Unable to open '%1'")
.arg(f.fileName()));
return false;
}
#endif

QDomDocument doc;
QString errorMsg;
Expand Down

0 comments on commit 9ee9894

Please sign in to comment.