mirror of
https://github.com/Tinob/Ishiiruka.git
synced 2024-06-05 22:59:03 -04:00
23 lines
598 B
Java
23 lines
598 B
Java
package org.dolphinemu.ishiiruka.fragments;
|
|
|
|
import android.net.Uri;
|
|
import android.support.annotation.NonNull;
|
|
import android.support.v4.content.FileProvider;
|
|
|
|
import com.nononsenseapps.filepicker.FilePickerFragment;
|
|
|
|
import java.io.File;
|
|
|
|
public class CustomFilePickerFragment extends FilePickerFragment
|
|
{
|
|
@NonNull
|
|
@Override
|
|
public Uri toUri(@NonNull final File file)
|
|
{
|
|
return FileProvider
|
|
.getUriForFile(getContext(),
|
|
getContext().getApplicationContext().getPackageName() + ".filesprovider",
|
|
file);
|
|
}
|
|
}
|