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

Commit 12174a1c authored by Jean-Baptiste Queru's avatar Jean-Baptiste Queru Committed by Android Git Automerger
Browse files

am 48576911: Merge from AOSP staging branch

* commit '48576911':
  Return error upon attempt to use non-existent APN
  Memory leak due to bad destroy sequence
parents ddf6d290 48576911
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1278,6 +1278,7 @@ public final class WebViewCore {
                                mBrowserFrame = null;
                                mSettings.onDestroyed();
                                mNativeClass = 0;
                                WebCoreThreadWatchdog.unregisterWebView(mWebViewClassic);
                                mWebViewClassic = null;
                            }
                            break;
@@ -1982,7 +1983,6 @@ public final class WebViewCore {
            mEventHub.sendMessageAtFrontOfQueue(
                    Message.obtain(null, EventHub.DESTROY));
            mEventHub.blockMessages();
            WebCoreThreadWatchdog.unregisterWebView(mWebViewClassic);
        }
    }

+5 −2
Original line number Diff line number Diff line
@@ -1193,8 +1193,11 @@ public class ConnectivityService extends IConnectivityManager.Stub {
                        log("startUsingNetworkFeature reconnecting to " + networkType + ": " +
                                feature);
                    }
                    network.reconnect();
                    if (network.reconnect()) {
                        return PhoneConstants.APN_REQUEST_STARTED;
                    } else {
                        return PhoneConstants.APN_REQUEST_FAILED;
                    }
                } else {
                    // need to remember this unsupported request so we respond appropriately on stop
                    synchronized(this) {