32 lines
802 B
Java
32 lines
802 B
Java
package c.i.a.c;
|
|
|
|
import android.content.Context;
|
|
import android.net.wifi.WifiManager;
|
|
import androidx.annotation.Nullable;
|
|
/* compiled from: WifiLockManager */
|
|
public final class t1 {
|
|
@Nullable
|
|
public final WifiManager a;
|
|
@Nullable
|
|
public WifiManager.WifiLock b;
|
|
|
|
/* renamed from: c reason: collision with root package name */
|
|
public boolean f956c;
|
|
public boolean d;
|
|
|
|
public t1(Context context) {
|
|
this.a = (WifiManager) context.getApplicationContext().getSystemService("wifi");
|
|
}
|
|
|
|
public final void a() {
|
|
WifiManager.WifiLock wifiLock = this.b;
|
|
if (wifiLock != null) {
|
|
if (!this.f956c || !this.d) {
|
|
wifiLock.release();
|
|
} else {
|
|
wifiLock.acquire();
|
|
}
|
|
}
|
|
}
|
|
}
|