Showing the changes to interface/src/scripting/WindowScriptingInterface.cpp (1 of 9 files). Show all
Unified · Split
| @@ -137,8 +137,13 @@ void WindowScriptingInterface::openUrl(const QUrl& url) { · 136 unmodified lines | ||
| 137 | 137 | if (url.scheme() == URL_SCHEME_HIFI) { |
| 138 | 138 | DependencyManager::get<AddressManager>()->handleLookupString(url.toString()); |
| 139 | 139 | } else { |
| 140 | +#if defined(Q_OS_ANDROID) | |
| 141 | + QList<QString> args = { url.toString() }; | |
| 142 | + AndroidHelper::instance().requestActivity("WebView", true, args); | |
| 143 | +#else | |
| 140 | 144 | // address manager did not handle - ask QDesktopServices to handle |
| 141 | 145 | QDesktopServices::openUrl(url); |
| 146 | +#endif | |
| 142 | 147 | } |
| 143 | 148 | } |
| 144 | 149 | } |