Fixed Play store build

This commit is contained in:
M66B 2022-07-26 08:05:00 +02:00
parent 24f6c1b4ff
commit 298e750cb5
1 changed files with 42 additions and 0 deletions

View File

@ -21,6 +21,10 @@ package eu.faircode.email;
import android.content.Context;
import android.os.Bundle;
import android.os.Parcel;
import android.os.Parcelable;
import androidx.annotation.NonNull;
import java.io.File;
@ -38,4 +42,42 @@ public class VirusTotal {
static Bundle upload(Context context, File file, String apiKey, Runnable analyzing) {
return null;
}
public static class ScanResult implements Parcelable {
public String name;
public String category;
ScanResult(String name, String category) {
this.name = name;
this.category = category;
}
protected ScanResult(Parcel in) {
name = in.readString();
category = in.readString();
}
@Override
public void writeToParcel(@NonNull Parcel parcel, int i) {
parcel.writeString(name);
parcel.writeString(category);
}
@Override
public int describeContents() {
return 0;
}
public static final Creator<ScanResult> CREATOR = new Creator<ScanResult>() {
@Override
public ScanResult createFromParcel(Parcel in) {
return new ScanResult(in);
}
@Override
public ScanResult[] newArray(int size) {
return new ScanResult[size];
}
};
}
}