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

Commit 81c76a98 authored by Etan Cohen's avatar Etan Cohen Committed by android-build-merger
Browse files

Merge "[CS] Allow network factory implementations to re-evaluate requests"...

Merge "[CS] Allow network factory implementations to re-evaluate requests" into oc-mr1-dev am: 19f12028
am: 58d610c5

Change-Id: I094ac271142898f356195ad23a7503121bae8b2a
parents a2a1c156 58d610c5
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -254,6 +254,16 @@ public class NetworkFactory extends Handler {
        }
    }

    /**
     * Post a command, on this NetworkFactory Handler, to re-evaluate all
     * oustanding requests. Can be called from a factory implementation.
     */
    protected void reevaluateAllRequests() {
        post(() -> {
            evalRequests();
        });
    }

    // override to do simple mode (request independent)
    protected void startNetwork() { }
    protected void stopNetwork() { }