package com.bytedance.sdk.openadsdk.gof.lb;

import android.content.Context;
import android.content.SharedPreferences;
import com.bytedance.sdk.component.utils.sds;

/* JADX INFO: loaded from: classes2.dex */
public class fm {
    private final SharedPreferences fm;

    public fm(Context context) {
        if (sds.fm(context)) {
            this.fm = context.getSharedPreferences("pag_monitor_record", 0);
            return;
        }
        this.fm = context.getSharedPreferences("pag_monitor_record_" + sds.lb(context), 0);
    }

    public long fm() {
        return this.fm.getLong("last_upload_time", 0L);
    }

    public void fm(long j10) {
        SharedPreferences.Editor editorEdit = this.fm.edit();
        editorEdit.putLong("last_upload_time", j10);
        editorEdit.apply();
    }
}
