discord-jadx/app/src/main/java/c/i/a/c/t1.java

32 lines
802 B
Java
Raw Normal View History

2021-07-24 02:37:17 +00:00
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 */
2021-07-28 07:39:21 +00:00
public boolean f956c;
2021-07-24 02:37:17 +00:00
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) {
2021-07-28 07:39:21 +00:00
if (!this.f956c || !this.d) {
2021-07-24 02:37:17 +00:00
wifiLock.release();
} else {
wifiLock.acquire();
}
}
}
}