package com.google.android.gms.common.api.internal;

import android.content.Context;
import com.google.android.material.internal.CheckableImageButton;
import com.google.android.material.textfield.TextInputLayout;
import tv.danmaku.ijk.media.player.IMediaPlayer;
import xyz.netfly.player.playback.PlaybackActivity;
import xyz.netfly.ui.dashboard.DashboardActivity;

/* JADX INFO: loaded from: classes2.dex */
public final /* synthetic */ class i0 implements Runnable {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ int f8256a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ Object f8257b;

    public /* synthetic */ i0(com.google.android.gms.internal.appset.a aVar) {
        this.f8256a = 2;
        this.f8257b = aVar;
    }

    @Override // java.lang.Runnable
    public final void run() {
        switch (this.f8256a) {
            case 0:
                ((l) this.f8257b).b();
                return;
            case 1:
                ((c0) ((m0) this.f8257b).f8275g).b(new e8.b(4, null, null));
                return;
            case 2:
                com.google.android.gms.internal.appset.a aVar = (com.google.android.gms.internal.appset.a) this.f8257b;
                long j10 = aVar.f19900a.getSharedPreferences("app_set_id_storage", 0).getLong("app_set_id_last_used_time", -1L);
                long j11 = j10 != -1 ? j10 + 33696000000L : -1L;
                if (j11 == -1 || System.currentTimeMillis() <= j11) {
                    return;
                }
                Context context = aVar.f19900a;
                if (!context.getSharedPreferences("app_set_id_storage", 0).edit().remove("app_set_id").commit()) {
                    String strValueOf = String.valueOf(context.getPackageName());
                    if (strValueOf.length() != 0) {
                        "Failed to clear app set ID generated for App ".concat(strValueOf);
                    }
                }
                if (context.getSharedPreferences("app_set_id_storage", 0).edit().remove("app_set_id_last_used_time").commit()) {
                    return;
                }
                String strValueOf2 = String.valueOf(context.getPackageName());
                if (strValueOf2.length() != 0) {
                    "Failed to clear app set ID last used time for App ".concat(strValueOf2);
                    return;
                }
                return;
            case 3:
                v8.a aVar2 = (v8.a) this.f8257b;
                synchronized (aVar2.f33746a) {
                    try {
                        if (aVar2.b()) {
                            String.valueOf(aVar2.f33755j).concat(" ** IS FORCE-RELEASED ON TIMEOUT **");
                            aVar2.d();
                            if (aVar2.b()) {
                                aVar2.f33748c = 1;
                                aVar2.e();
                                return;
                            }
                            return;
                        }
                        return;
                    } finally {
                    }
                }
            case 4:
                CheckableImageButton checkableImageButton = ((TextInputLayout) this.f8257b).f23356c.f23432g;
                checkableImageButton.performClick();
                checkableImageButton.jumpDrawablesToCurrentState();
                return;
            case 5:
                ((lc.a) this.f8257b).f30206b.notImplemented();
                return;
            case 6:
                io.flutter.plugin.platform.a0 a0Var = (io.flutter.plugin.platform.a0) this.f8257b;
                a0Var.f28188a.postDelayed(a0Var.f28189b, 128L);
                return;
            case 7:
                io.flutter.plugin.platform.b0 b0Var = (io.flutter.plugin.platform.b0) this.f8257b;
                b0Var.f28191a.getViewTreeObserver().removeOnDrawListener(b0Var);
                return;
            case 8:
                PlaybackActivity playbackActivity = (PlaybackActivity) this.f8257b;
                if (playbackActivity.isFinishing() || playbackActivity.isDestroyed() || playbackActivity.f35254h == 701) {
                    return;
                }
                playbackActivity.f35254h = IMediaPlayer.MEDIA_INFO_BUFFERING_START;
                ((ie.r) playbackActivity.binding).f27409e.setVisibility(0);
                ((ie.r) playbackActivity.binding).f27410f.setVisibility(8);
                return;
            case 9:
                DashboardActivity dashboardActivity = (DashboardActivity) this.f8257b;
                int i10 = DashboardActivity.f35280m;
                dashboardActivity.M(true);
                dashboardActivity.f35289j.postDelayed(this, 5000L);
                return;
            case 10:
                pe.g gVar = (pe.g) this.f8257b;
                gVar.P0 = (gVar.P0 + 1) % 4;
                StringBuilder sb = new StringBuilder();
                for (int i11 = 0; i11 < gVar.P0; i11++) {
                    sb.append(".");
                }
                gVar.G0.f27213d.setText(sb);
                gVar.O0.postDelayed(this, 500L);
                return;
            default:
                rf.w wVar = (rf.w) this.f8257b;
                wVar.s();
                wVar.f32615r = null;
                return;
        }
    }

    public /* synthetic */ i0(Object obj, int i10) {
        this.f8256a = i10;
        this.f8257b = obj;
    }
}
