This repository has been archived by the owner on Apr 3, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Android] Fixed crash of XWalkPreferences
Everytime XWalkPreference.sevValue() is invoked, it checks if previous listeners exist, if exist and the key is ANIMATABLE_XWALK_VIEW, if will throw an runtime exception. The listener is registered when an XWalkView is created and unregistered when an XWalkView is destroyed. But after XWalkView is decoupled from the activity, XWalkView can not be destroyed automatically when an activity is closed. So previous listeners are still remaining and have the app crashed. This patch changs the behavior on this situation, warning that this setting is not effective to previous XWalkViews instead of throwing the exception. BUG=XWALK-7309
- Loading branch information