mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-26 06:22:45 +00:00
Don't trim XML strings
We should display the apps exactly as reported in GFE.
This commit is contained in:
parent
5c42fd86a6
commit
0a0e3ff970
@ -227,7 +227,7 @@ public class NvHTTP {
|
|||||||
break;
|
break;
|
||||||
case (XmlPullParser.TEXT):
|
case (XmlPullParser.TEXT):
|
||||||
if (currentTag.peek().equals(tagname)) {
|
if (currentTag.peek().equals(tagname)) {
|
||||||
return xpp.getText().trim();
|
return xpp.getText();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -557,11 +557,11 @@ public class NvHTTP {
|
|||||||
case (XmlPullParser.TEXT):
|
case (XmlPullParser.TEXT):
|
||||||
NvApp app = appList.getLast();
|
NvApp app = appList.getLast();
|
||||||
if (currentTag.peek().equals("AppTitle")) {
|
if (currentTag.peek().equals("AppTitle")) {
|
||||||
app.setAppName(xpp.getText().trim());
|
app.setAppName(xpp.getText());
|
||||||
} else if (currentTag.peek().equals("ID")) {
|
} else if (currentTag.peek().equals("ID")) {
|
||||||
app.setAppId(xpp.getText().trim());
|
app.setAppId(xpp.getText());
|
||||||
} else if (currentTag.peek().equals("IsHdrSupported")) {
|
} else if (currentTag.peek().equals("IsHdrSupported")) {
|
||||||
app.setHdrSupported(xpp.getText().trim().equals("1"));
|
app.setHdrSupported(xpp.getText().equals("1"));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user