diff --git a/OsmAnd/src/net/osmand/plus/profiles/SelectProfileBottomSheetDialogFragment.java b/OsmAnd/src/net/osmand/plus/profiles/SelectProfileBottomSheetDialogFragment.java index a80206f8c7..9eba440a90 100644 --- a/OsmAnd/src/net/osmand/plus/profiles/SelectProfileBottomSheetDialogFragment.java +++ b/OsmAnd/src/net/osmand/plus/profiles/SelectProfileBottomSheetDialogFragment.java @@ -221,7 +221,7 @@ public class SelectProfileBottomSheetDialogFragment extends MenuBottomSheetDialo if (activity != null) { FragmentManager fragmentManager = activity.getSupportFragmentManager(); EditProfileFragment editProfileFragment = (EditProfileFragment) fragmentManager.findFragmentByTag(EditProfileFragment.TAG); - SettingsProfileFragment settingsProfileFragment = (SettingsProfileFragment) fragmentManager.findFragmentByTag(SettingsProfileFragment.TAG); + SettingsProfileFragment settingsProfileFragment = (SettingsProfileFragment) fragmentManager.findFragmentByTag(SettingsProfileFragment.class.getName()); if (editProfileFragment != null) { switch (type) { diff --git a/OsmAnd/src/net/osmand/plus/profiles/SettingsProfileActivity.java b/OsmAnd/src/net/osmand/plus/profiles/SettingsProfileActivity.java index eef44601b4..accce83d45 100644 --- a/OsmAnd/src/net/osmand/plus/profiles/SettingsProfileActivity.java +++ b/OsmAnd/src/net/osmand/plus/profiles/SettingsProfileActivity.java @@ -19,7 +19,7 @@ public class SettingsProfileActivity extends OsmandActionBarActivity { SettingsProfileFragment profileFragment = new SettingsProfileFragment(); profileFragment.setArguments(getIntent().getExtras()); getSupportFragmentManager().beginTransaction() - .add(android.R.id.content, profileFragment, SettingsProfileFragment.TAG).commit(); + .add(android.R.id.content, profileFragment, SettingsProfileFragment.class.getName()).commit(); } } diff --git a/OsmAnd/src/net/osmand/plus/profiles/SettingsProfileFragment.java b/OsmAnd/src/net/osmand/plus/profiles/SettingsProfileFragment.java index 1f2f909982..b685bd6483 100644 --- a/OsmAnd/src/net/osmand/plus/profiles/SettingsProfileFragment.java +++ b/OsmAnd/src/net/osmand/plus/profiles/SettingsProfileFragment.java @@ -45,8 +45,6 @@ public class SettingsProfileFragment extends BaseOsmAndFragment private static final Log LOG = PlatformUtil.getLog(SettingsProfileFragment.class); - public static final String TAG = "SettingsProfileFragment"; - public static final String PROFILE_STRING_KEY = "string_key"; public static final String IS_NEW_PROFILE = "new_profile"; public static final String IS_USER_PROFILE = "user_profile";