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

Commit 9de34ba2 authored by Mark Chien's avatar Mark Chien Committed by Automerger Merge Worker
Browse files

Merge "Replace type with TetheringRequest in startTethering usage" into rvc-dev am: fc526fb6

Change-Id: I8f7165d958e4e3057f203b4e7e0d732185c2d0e9
parents 44689d43 fc526fb6
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -16,10 +16,13 @@

package com.android.systemui.statusbar.policy;

import static android.net.TetheringManager.TETHERING_WIFI;

import android.app.ActivityManager;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.TetheringManager;
import android.net.TetheringManager.TetheringRequest;
import android.net.wifi.WifiClient;
import android.net.wifi.WifiManager;
import android.os.Handler;
@@ -190,7 +193,7 @@ public class HotspotControllerImpl implements HotspotController, WifiManager.Sof
        if (enabled) {
            mWaitingForTerminalState = true;
            if (DEBUG) Log.d(TAG, "Starting tethering");
            mTetheringManager.startTethering(ConnectivityManager.TETHERING_WIFI,
            mTetheringManager.startTethering(new TetheringRequest.Builder(TETHERING_WIFI).build(),
                    ConcurrentUtils.DIRECT_EXECUTOR,
                    new TetheringManager.StartTetheringCallback() {
                        @Override