Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 38eb468e authored by Gustav Sennton's avatar Gustav Sennton Committed by android-build-merger
Browse files

Merge "Don\'t run the WebView preparation if using the same non-replaced...

Merge "Don\'t run the WebView preparation if using the same non-replaced package" into nyc-dev am: 5352dda4
am: 4f41b242

* commit '4f41b242':
  Don't run the WebView preparation if using the same non-replaced package

Change-Id: I8df4c9520c961e9aa0a6231c3749ec49cf6390d2
parents f682070c 4f41b242
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -245,8 +245,16 @@ public class WebViewUpdateServiceImpl {
                    synchronized(mLock) {
                        try {
                            newPackage = findPreferredWebViewPackage();
                            if (mCurrentWebViewPackage != null)
                            if (mCurrentWebViewPackage != null) {
                                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;
                                }
                            }
                            // Only trigger update actions if the updated package is the one
                            // that will be used, or the one that was in use before the
                            // update, or if we haven't seen a valid WebView package before.