Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Merge pull request #6282 from mahdihijazi/replace_file_browser
[Android] Replace current file browser
- Loading branch information
Showing
13 changed files
with
252 additions
and
396 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| package org.dolphinemu.dolphinemu.activities; | ||
|
|
||
| import android.os.Environment; | ||
| import android.support.annotation.Nullable; | ||
|
|
||
| import com.nononsenseapps.filepicker.AbstractFilePickerFragment; | ||
| import com.nononsenseapps.filepicker.FilePickerActivity; | ||
|
|
||
| import org.dolphinemu.dolphinemu.fragments.CustomFilePickerFragment; | ||
|
|
||
| import java.io.File; | ||
|
|
||
| public class CustomFilePickerActivity extends FilePickerActivity | ||
|
|
||
| { | ||
| @Override | ||
| protected AbstractFilePickerFragment<File> getFragment( | ||
| @Nullable final String startPath, final int mode, final boolean allowMultiple, | ||
| final boolean allowCreateDir, final boolean allowExistingFile, | ||
| final boolean singleClick) | ||
| { | ||
| AbstractFilePickerFragment<File> fragment = new CustomFilePickerFragment(); | ||
| // startPath is allowed to be null. In that case, default folder should be SD-card and not "/" | ||
| fragment.setArgs(startPath != null ? startPath : Environment.getExternalStorageDirectory().getPath(), | ||
| mode, allowMultiple, allowCreateDir, allowExistingFile, singleClick); | ||
| return fragment; | ||
| } | ||
| } |
Oops, something went wrong.