Limit delayed loading of plugin content to AddonOverviewFragment
This commit is contained in:
parent
6eb1fcf167
commit
57f3dfd502
|
@ -85,6 +85,7 @@ public class AddonOverviewFragment extends Fragment {
|
|||
MediaFileListFragment.FileLocation rootPath = new MediaFileListFragment.FileLocation(name, "plugin://" + path, true);
|
||||
rootPath.setRootDir(true);
|
||||
content.putParcelable(MediaFileListFragment.ROOT_PATH, rootPath);
|
||||
content.putBoolean(MediaFileListFragment.DELAY_LOAD, true);
|
||||
return content;
|
||||
}
|
||||
|
||||
|
|
|
@ -65,6 +65,7 @@ public class MediaFileListFragment extends AbstractListFragment {
|
|||
public static final String ROOT_PATH_CONTENTS = "rootPathContents";
|
||||
public static final String ROOT_VISITED = "rootVisited";
|
||||
public static final String ROOT_PATH = "rootPath";
|
||||
public static final String DELAY_LOAD = "delayLoad";
|
||||
private static final String ADDON_SOURCE = "addons:";
|
||||
|
||||
private HostManager hostManager;
|
||||
|
@ -165,7 +166,7 @@ public class MediaFileListFragment extends AbstractListFragment {
|
|||
else if (rootPath != null) {
|
||||
loadOnVisible = rootPath;
|
||||
// setUserVisibleHint may have already fired
|
||||
setUserVisibleHint(getUserVisibleHint());
|
||||
setUserVisibleHint(getUserVisibleHint() || !args.getBoolean(DELAY_LOAD, false));
|
||||
}
|
||||
else {
|
||||
browseSources();
|
||||
|
|
Loading…
Reference in New Issue