Merge "WebView: pay attention to PACKAGE_CHANGED." into qt-qpr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
400db4bfef
@@ -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