[android] fix: Downloader fragment was incorrectly placed on SearchActivity.
This commit is contained in:
parent
722defa9cf
commit
b4d13c7ca1
2 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
|
Reference in a new issue