From 8e3edf4eec123f4538e5efee6710505379f61f4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=80=20?= =?UTF-8?q?=D0=97=D0=B0=D1=86=D0=B5=D0=BF=D0=B8=D0=BD?= Date: Mon, 16 Apr 2018 11:51:24 +0300 Subject: [PATCH] [android] Renamed method in SocialAuthDialogFragment --- .../mapswithme/maps/auth/SocialAuthDialogFragment.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/android/src/com/mapswithme/maps/auth/SocialAuthDialogFragment.java b/android/src/com/mapswithme/maps/auth/SocialAuthDialogFragment.java index 2ed8411492..50578efd75 100644 --- a/android/src/com/mapswithme/maps/auth/SocialAuthDialogFragment.java +++ b/android/src/com/mapswithme/maps/auth/SocialAuthDialogFragment.java @@ -134,7 +134,7 @@ public class SocialAuthDialogFragment extends BaseMwmDialogFragment { super.onResume(); - for (TokenHandler handler: mTokenHandlers) + for (TokenHandler handler : mTokenHandlers) { if (handler.checkToken()) { @@ -227,7 +227,7 @@ public class SocialAuthDialogFragment extends BaseMwmDialogFragment public void onCancel() { LOGGER.w(TAG, "onCancel"); - sendErrorResult(Activity.RESULT_CANCELED, Framework.SOCIAL_TOKEN_FACEBOOK, + sendEmptyResult(Activity.RESULT_CANCELED, Framework.SOCIAL_TOKEN_FACEBOOK, null, true); } @@ -235,11 +235,11 @@ public class SocialAuthDialogFragment extends BaseMwmDialogFragment public void onError(FacebookException error) { LOGGER.e(TAG, "onError", error); - sendErrorResult(Activity.RESULT_CANCELED, Framework.SOCIAL_TOKEN_FACEBOOK, + sendEmptyResult(Activity.RESULT_CANCELED, Framework.SOCIAL_TOKEN_FACEBOOK, error != null ? error.getMessage() : null, false); } - private void sendErrorResult(int resultCode, @Framework.AuthTokenType int type, + private void sendEmptyResult(int resultCode, @Framework.AuthTokenType int type, @Nullable String error, boolean isCancel) { SocialAuthDialogFragment fragment = mFragmentRef.get();