use of dev.dworks.apps.anexplorer.fragment.HomeFragment in project AnExplorer by 1hakr.
the class DocumentsActivity method again.
@Override
public void again() {
if (Utils.hasMarshmallow()) {
RootsCache.updateRoots(this, ExternalStorageProvider.AUTHORITY);
mRoots = DocumentsApplication.getRootsCache(this);
final Handler handler = new Handler();
handler.postDelayed(new Runnable() {
@Override
public void run() {
mRoots.updateAsync();
final RootInfo root = getCurrentRoot();
if (root.isHome()) {
HomeFragment homeFragment = HomeFragment.get(getFragmentManager());
if (null != homeFragment) {
homeFragment.reloadData();
}
}
}
}, 500);
}
}
Aggregations