what-the-bank/sources/com/google/android/gms/common/sqlite/CursorWrapper.java

47 lines
1.5 KiB
Java

package com.google.android.gms.common.sqlite;
import android.database.AbstractWindowedCursor;
import android.database.CrossProcessCursor;
import android.database.Cursor;
import android.database.CursorWindow;
/* loaded from: classes.dex */
public class CursorWrapper extends android.database.CursorWrapper implements CrossProcessCursor {
private AbstractWindowedCursor zza;
public CursorWrapper(Cursor cursor) {
super(cursor);
for (int i = 0; i < 10 && (cursor instanceof android.database.CursorWrapper); i++) {
cursor = ((android.database.CursorWrapper) cursor).getWrappedCursor();
}
if (!(cursor instanceof AbstractWindowedCursor)) {
throw new IllegalArgumentException("Unknown type: ".concat(String.valueOf(cursor.getClass().getName())));
}
this.zza = (AbstractWindowedCursor) cursor;
}
@Override // android.database.CrossProcessCursor
public void fillWindow(int i, CursorWindow cursorWindow) {
this.zza.fillWindow(i, cursorWindow);
}
@Override // android.database.CrossProcessCursor
public CursorWindow getWindow() {
return this.zza.getWindow();
}
@Override // android.database.CrossProcessCursor
public final boolean onMove(int i, int i2) {
return this.zza.onMove(i, i2);
}
public void setWindow(CursorWindow cursorWindow) {
this.zza.setWindow(cursorWindow);
}
@Override // android.database.CursorWrapper
public final /* synthetic */ Cursor getWrappedCursor() {
return this.zza;
}
}