Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorАлександр Зацепин <az@mapswithme.com>2018-04-15 13:54:53 +0300
committerArsentiy Milchakov <milcars@mapswithme.com>2018-04-16 11:55:04 +0300
commit3748eabf609a795fb43931395a37d07e310d31ff (patch)
tree440b0e8a81b7fff83197028a6648dc4b562bdff6 /android/src
parentb08f15ad6aeba95f24643a292997649bf35509e6 (diff)
[android] Added finishing ugc activity when cancel or error is obtained during social authentication
Diffstat (limited to 'android/src')
-rw-r--r--android/src/com/mapswithme/maps/ugc/UGCEditorFragment.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/android/src/com/mapswithme/maps/ugc/UGCEditorFragment.java b/android/src/com/mapswithme/maps/ugc/UGCEditorFragment.java
index 030503dc3a..230859ec3b 100644
--- a/android/src/com/mapswithme/maps/ugc/UGCEditorFragment.java
+++ b/android/src/com/mapswithme/maps/ugc/UGCEditorFragment.java
@@ -121,12 +121,16 @@ public class UGCEditorFragment extends BaseMwmAuthorizationFragment
public void onSocialAuthenticationCancel(@Framework.AuthTokenType int type)
{
Statistics.INSTANCE.trackEvent(Statistics.EventName.UGC_AUTH_DECLINED);
+ if (isAdded())
+ getActivity().finish();
}
@Override
public void onSocialAuthenticationError(int type, @Nullable String error)
{
Statistics.INSTANCE.trackUGCAuthFailed(type, error);
+ if (isAdded())
+ getActivity().finish();
}
private void onSubmitButtonClick()