[android] fix: Downloader fragment was incorrectly placed on SearchActivity.

This commit is contained in:
Alexander Marchuk 2016-01-28 13:14:27 +03:00 committed by Sergey Yershov
parent 722defa9cf
commit b4d13c7ca1
2 changed files with 3 additions and 3 deletions

View file

@ -211,14 +211,14 @@ public class CountrySuggestFragment extends BaseMwmFragment implements View.OnCl
ActiveCountryTree.downloadMapForIndex(mCurrentLocationCountryIndex, storageOptionsRequested());
}
private int storageOptionsRequested()
private static int storageOptionsRequested()
{
return StorageOptions.MAP_OPTION_MAP_ONLY;
}
private void selectMapForDownload()
{
SearchFragment parent = (SearchFragment) getParentFragment();
SearchFragment parent = (SearchFragment)getParentFragment();
parent.showDownloader();
}

View file

@ -176,8 +176,8 @@ public class SearchFragment extends BaseMwmFragment
public void showDownloader()
{
((BaseMwmFragmentActivity)getActivity()).replaceFragment(DownloadFragment.class, null, null);
UiUtils.hide(mResultsFrame, mResultsPlaceholder, mTabFrame);
((BaseMwmFragmentActivity) getActivity()).replaceFragment(DownloadFragment.class, null, null);
}
private void updateFrames()