package me.devsaki.hentoid.dirpicker.model;

import androidx.annotation.NonNull;

import java.io.File;

/**
 * Created by avluis on 06/12/2016.
 * File Builder
 */
public class FileBuilder extends File {
    private String name;

    public FileBuilder(String path) {
        super(path);
    }

    @NonNull
    @Override
    public String getName() {
        if (this.name != null) {
            return this.name;
        }

        return super.getName();
    }

    public void setName(String name) {
        this.name = name;
    }
}

@@ -95,16 +95,42 @@
 io.File;
+%0Aimport java.util.Objects;
 %0A%0A/**%0A *
@@ -311,24 +311,288 @@
 th);%0A    %7D%0A%0A
+    @Override%0A    public boolean equals(Object o) %7B%0A        if (!(o instanceof FileBuilder)) %7B%0A            return false;%0A        %7D%0A%0A        FileBuilder fileBuilder = (FileBuilder) o;%0A%0A        return this == o %7C%7C Objects.equals(fileBuilder.getName(), name);%0A    %7D%0A%0A
     @NonNull

Fix FileBuilder equals