package com.google.android.gms.internal.pal;

import android.app.AppOpsManager$OnOpActiveChangedListener;

/* JADX INFO: loaded from: classes2.dex */
public final class e4 implements AppOpsManager$OnOpActiveChangedListener {

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

    public e4(f4 f4Var) {
        this.f20773a = f4Var;
    }

    public final void onOpActiveChanged(String str, int i10, String str2, boolean z10) {
        if (z10) {
            this.f20773a.f20900a = System.currentTimeMillis();
            this.f20773a.f20903d = true;
            return;
        }
        long jCurrentTimeMillis = System.currentTimeMillis();
        f4 f4Var = this.f20773a;
        long j10 = f4Var.f20901b;
        if (j10 > 0 && jCurrentTimeMillis >= j10) {
            f4Var.f20902c = jCurrentTimeMillis - j10;
        }
        f4Var.f20903d = false;
    }
}
