Merge "WebView: pay attention to PACKAGE_CHANGED." into qt-qpr1-dev
am: 400db4bfef
Change-Id: I5c7c032b1d336b84c4d198312aba4ba121a2fc46
This commit is contained in:
committed by
android-build-merger
commit
3c1216c41f
@@ -87,19 +87,6 @@ class WebViewUpdater {
|
|||||||
newPackage = findPreferredWebViewPackage();
|
newPackage = findPreferredWebViewPackage();
|
||||||
if (mCurrentWebViewPackage != null) {
|
if (mCurrentWebViewPackage != null) {
|
||||||
oldProviderName = mCurrentWebViewPackage.packageName;
|
oldProviderName = mCurrentWebViewPackage.packageName;
|
||||||
if (changedState == WebViewUpdateService.PACKAGE_CHANGED
|
|
||||||
&& newPackage.packageName.equals(oldProviderName)) {
|
|
||||||
// If we don't change package name we should only rerun the
|
|
||||||
// preparation phase if the current package has been replaced
|
|
||||||
// (not if it has been enabled/disabled).
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (newPackage.packageName.equals(oldProviderName)
|
|
||||||
&& (newPackage.lastUpdateTime
|
|
||||||
== mCurrentWebViewPackage.lastUpdateTime)) {
|
|
||||||
// If the chosen package hasn't been updated, then early-out
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
// Only trigger update actions if the updated package is the one
|
// Only trigger update actions if the updated package is the one
|
||||||
// that will be used, or the one that was in use before the
|
// that will be used, or the one that was in use before the
|
||||||
|
|||||||
Reference in New Issue
Block a user