Fix
This commit is contained in:
parent
0c98eda604
commit
17ba2e1e93
2 changed files with 5 additions and 5 deletions
|
@ -65,11 +65,11 @@ public class RegionDialogFragment extends DialogFragment{
|
|||
toolbar.setTitle(region.getName());
|
||||
}
|
||||
}
|
||||
((DownloadActivity) getActivity()).initFreeVersionBanner(view);
|
||||
getDownloadActivity().initFreeVersionBanner(view);
|
||||
listener = new DialogDismissListener() {
|
||||
@Override
|
||||
public void onDialogDismissed() {
|
||||
((DownloadActivity) getActivity()).initFreeVersionBanner(view);
|
||||
getDownloadActivity().initFreeVersionBanner(view);
|
||||
}
|
||||
};
|
||||
return view;
|
||||
|
@ -92,7 +92,7 @@ public class RegionDialogFragment extends DialogFragment{
|
|||
public void onRegionSelected(String regionId) {
|
||||
final RegionDialogFragment regionDialogFragment = createInstance(regionId);
|
||||
regionDialogFragment.setOnDismissListener(listener);
|
||||
((DownloadActivity) getActivity()).showDialog(getActivity(), regionDialogFragment);
|
||||
getDownloadActivity().showDialog(getActivity(), regionDialogFragment);
|
||||
}
|
||||
|
||||
public static RegionDialogFragment createInstance(String regionId) {
|
||||
|
|
|
@ -127,8 +127,8 @@ public class WorldItemsFragment extends OsmandExpandableListFragment {
|
|||
if (groupPosition == worldRegionsIndex) {
|
||||
WorldRegion region = (WorldRegion)listAdapter.getChild(groupPosition, childPosition);
|
||||
final RegionDialogFragment regionDialogFragment = RegionDialogFragment.createInstance(region.getRegionId());
|
||||
regionDialogFragment.setOnDismissListener((DownloadActivity) getActivity());
|
||||
((DownloadActivity)getActivity()).showDialog(getActivity(), regionDialogFragment);
|
||||
regionDialogFragment.setOnDismissListener(getDownloadActivity());
|
||||
getDownloadActivity().showDialog(getActivity(), regionDialogFragment);
|
||||
return true;
|
||||
} else if (groupPosition == voicePromptsIndex) {
|
||||
if (childPosition == voicePromptsItemsRecordedSubIndex) {
|
||||
|
|
Loading…
Reference in a new issue