From d233acf9dd0c4085082f8679a6febabbcf8f7b33 Mon Sep 17 00:00:00 2001 From: Dima-1 Date: Fri, 17 Apr 2020 16:42:06 +0300 Subject: [PATCH] fix name --- .../osmand/plus/osmedit/EditPoiDialogFragment.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/osmedit/EditPoiDialogFragment.java b/OsmAnd/src/net/osmand/plus/osmedit/EditPoiDialogFragment.java index d5bec58b29..b4c376f0cd 100644 --- a/OsmAnd/src/net/osmand/plus/osmedit/EditPoiDialogFragment.java +++ b/OsmAnd/src/net/osmand/plus/osmedit/EditPoiDialogFragment.java @@ -160,7 +160,7 @@ public class EditPoiDialogFragment extends BaseOsmAndDialogFragment { viewPager = (EditPoiViewPager) view.findViewById(R.id.viewpager); String basicTitle = getResources().getString(R.string.tab_title_basic); String extendedTitle = getResources().getString(R.string.tab_title_advanced); - final poiInfoPagerAdapter pagerAdapter = new poiInfoPagerAdapter(getChildFragmentManager(), basicTitle, extendedTitle); + final PoiInfoPagerAdapter pagerAdapter = new PoiInfoPagerAdapter(getChildFragmentManager(), basicTitle, extendedTitle); viewPager.setAdapter(pagerAdapter); viewPager.addOnPageChangeListener(new ViewPager.OnPageChangeListener() { @Override @@ -744,12 +744,12 @@ public class EditPoiDialogFragment extends BaseOsmAndDialogFragment { }.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); } - public static class poiInfoPagerAdapter extends FragmentPagerAdapter { + public static class PoiInfoPagerAdapter extends FragmentPagerAdapter { private final Fragment[] fragments = new Fragment[]{new BasicEditPoiFragment(), new AdvancedEditPoiFragment()}; private final String[] titles; - poiInfoPagerAdapter(FragmentManager fm, String basicTitle, String extendedTitle) { + PoiInfoPagerAdapter(FragmentManager fm, String basicTitle, String extendedTitle) { super(fm); titles = new String[]{basicTitle, extendedTitle}; } @@ -891,7 +891,7 @@ public class EditPoiDialogFragment extends BaseOsmAndDialogFragment { @Override public Dialog onCreateDialog(Bundle savedInstanceState) { Context themedContext = getActivity(); - if (getParentFragment() != null) { + if (getParentFragment() instanceof EditPoiDialogFragment) { themedContext = UiUtilities.getThemedContext(getActivity(), ((EditPoiDialogFragment) getParentFragment()).isNightMode(true)); } @@ -919,7 +919,7 @@ public class EditPoiDialogFragment extends BaseOsmAndDialogFragment { @Override public Dialog onCreateDialog(Bundle savedInstanceState) { Context themedContext = getActivity(); - if (getParentFragment() != null) { + if (getParentFragment() instanceof EditPoiDialogFragment) { themedContext = UiUtilities.getThemedContext(getActivity(), ((EditPoiDialogFragment) getParentFragment()).isNightMode(true)); } @@ -942,7 +942,7 @@ public class EditPoiDialogFragment extends BaseOsmAndDialogFragment { @Override public Dialog onCreateDialog(Bundle savedInstanceState) { Context themedContext = getActivity(); - if (getParentFragment() != null) { + if (getParentFragment() instanceof EditPoiDialogFragment) { themedContext = UiUtilities.getThemedContext(getActivity(), ((EditPoiDialogFragment) getParentFragment()).isNightMode(true)); }