package o;

import android.net.ConnectivityManager;
import android.net.Network;
import android.net.NetworkCapabilities;
import android.os.Handler;
import android.os.Looper;
import ir.devixor.app.activity.WebViewActivity;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.dS, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C1001dS extends ConnectivityManager.NetworkCallback {
    public final /* synthetic */ int a;
    public final /* synthetic */ Object b;

    public /* synthetic */ C1001dS(int i, Object obj) {
        this.a = i;
        this.b = obj;
    }

    @Override // android.net.ConnectivityManager.NetworkCallback
    public void onAvailable(Network network) {
        switch (this.a) {
            case 1:
                C3126zm0.g((C3126zm0) this.b, network, true);
                break;
            case 2:
                WebViewActivity webViewActivity = (WebViewActivity) this.b;
                WebViewActivity webViewActivity2 = WebViewActivity.x;
                new Handler(Looper.getMainLooper()).post(new Tk0(webViewActivity, 2));
                break;
            default:
                super.onAvailable(network);
                break;
        }
    }

    @Override // android.net.ConnectivityManager.NetworkCallback
    public void onCapabilitiesChanged(Network network, NetworkCapabilities networkCapabilities) {
        switch (this.a) {
            case 0:
                C0669Zu c0669ZuE = C0669Zu.e();
                int i = AbstractC1192fS.a;
                networkCapabilities.toString();
                c0669ZuE.getClass();
                C1096eS c1096eS = (C1096eS) this.b;
                c1096eS.b(AbstractC1192fS.a(c1096eS.f));
                break;
            default:
                super.onCapabilitiesChanged(network, networkCapabilities);
                break;
        }
    }

    @Override // android.net.ConnectivityManager.NetworkCallback
    public final void onLost(Network network) {
        switch (this.a) {
            case 0:
                C0669Zu c0669ZuE = C0669Zu.e();
                int i = AbstractC1192fS.a;
                c0669ZuE.getClass();
                C1096eS c1096eS = (C1096eS) this.b;
                c1096eS.b(AbstractC1192fS.a(c1096eS.f));
                break;
            case 1:
                C3126zm0.g((C3126zm0) this.b, network, false);
                break;
            default:
                WebViewActivity webViewActivity = (WebViewActivity) this.b;
                WebViewActivity webViewActivity2 = WebViewActivity.x;
                new Handler(Looper.getMainLooper()).post(new Tk0(webViewActivity, 3));
                break;
        }
    }
}
