package com.tencent.mm.plugin.dbbackup.a;

import android.database.Cursor;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.wcdb.repair.RepairKit.Callback;
import org.xwalk.core.XWalkFeature;

class a$1 implements Callback {
    private int EV = 0;
    private int kJu = 0;
    private boolean kJv = false;
    final /* synthetic */ int[] kJw;
    final /* synthetic */ a kJx;

    a$1(a aVar, int[] iArr) {
        this.kJx = aVar;
        this.kJw = iArr;
    }

    public final int onProgress(String str, int i, Cursor cursor) {
        AppMethodBeat.i(19002);
        if (this.kJu == 0) {
            if (str.equalsIgnoreCase("message")) {
                this.kJu = i;
            } else {
                AppMethodBeat.o(19002);
                return 0;
            }
        } else if (this.kJu != i) {
            if (!this.kJv) {
                this.kJv = true;
                a.a(this.kJx, new Integer[]{Integer.valueOf(3)});
            }
            AppMethodBeat.o(19002);
            return 0;
        }
        int i2 = this.EV;
        this.EV = i2 + 1;
        if (i2 % XWalkFeature.INTERFACE_GEO_LOCATION_PERMISSION == 0) {
            a.b(this.kJx, new Integer[]{Integer.valueOf(2), Integer.valueOf(this.EV - 1), Integer.valueOf(a.a(this.kJx))});
        }
        int[] iArr = this.kJw;
        iArr[0] = iArr[0] + 1;
        AppMethodBeat.o(19002);
        return 0;
    }
}
