History

Support web3d overlays in android

Gabriel Calero committed 8 years ago

Commit fedc0a91 parent 40880359 files · +185 −32Browse files

Showing the changes to interface/src/scripting/WindowScriptingInterface.cpp (1 of 9 files). Show all

Unified · Split

interface/src/scripting/WindowScriptingInterface.cpp+5−0
@@ -137,8 +137,13 @@ void WindowScriptingInterface::openUrl(const QUrl& url) { · 136 unmodified lines
137137 if (url.scheme() == URL_SCHEME_HIFI) {
138138 DependencyManager::get<AddressManager>()->handleLookupString(url.toString());
139139 } else {
140+#if defined(Q_OS_ANDROID)
141+ QList<QString> args = { url.toString() };
142+ AndroidHelper::instance().requestActivity("WebView", true, args);
143+#else
140144 // address manager did not handle - ask QDesktopServices to handle
141145 QDesktopServices::openUrl(url);
146+#endif
142147 }
143148 }
144149 }