Read styles from APK
This commit is contained in:
@@ -117,7 +117,7 @@ void FileRequestBaton::file_read(uv_fs_t *req) {
|
||||
assert(ptr->thread_id == uv_thread_self());
|
||||
|
||||
if (req->result < 0 || ptr->canceled || !ptr->request) {
|
||||
// Stating failed or was canceled. We already have an open file handle
|
||||
// Reading failed or was canceled. We already have an open file handle
|
||||
// though, which we'll have to close.
|
||||
notify_error(req);
|
||||
} else {
|
||||
|
||||
@@ -77,8 +77,8 @@ std::unique_ptr<Request> FileSource::request(ResourceType type, const std::strin
|
||||
if (absoluteURL.substr(0, 7) == "file://") {
|
||||
req = std::make_shared<FileRequest>(absoluteURL.substr(7), loop);
|
||||
#ifdef __ANDROID__
|
||||
} else if (absoluteURL.substr(0, 7) == "asset://") {
|
||||
req = std::make_shared<AssetRequest>(absoluteURL.substr(7), loop);
|
||||
} else if (absoluteURL.substr(0, 8) == "asset://") {
|
||||
req = std::make_shared<AssetRequest>(absoluteURL.substr(8), loop);
|
||||
#endif
|
||||
} else {
|
||||
req = std::make_shared<HTTPRequest>(type, absoluteURL, loop, store);
|
||||
|
||||
Reference in New Issue
Block a user