comparison cagou/core/platform_/android.py @ 428:85fc3da9560c

android: fixed "open_url"
author Goffi <goffi@goffi.org>
date Sun, 01 Mar 2020 22:11:25 +0100
parents b51c10cc7325
children ec11a35dcf14
comparison
equal deleted inserted replaced
427:b51c10cc7325 428:85fc3da9560c
459 intent.setData(Uri.parse(url)) 459 intent.setData(Uri.parse(url))
460 if mActivity.getPackageManager() is not None: 460 if mActivity.getPackageManager() is not None:
461 activity = cast('android.app.Activity', mActivity) 461 activity = cast('android.app.Activity', mActivity)
462 activity.startActivity(intent) 462 activity.startActivity(intent)
463 else: 463 else:
464 super().open_url(self, url, wid) 464 super().open_url(url, wid)