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-16 11:51:24 +0300
committerArsentiy Milchakov <milcars@mapswithme.com>2018-04-16 11:55:04 +0300
commit8e3edf4eec123f4538e5efee6710505379f61f4b (patch)
tree2c7ec23e4e26a0788ae96ec8f024443d7ccd97bd /android/src
parent3748eabf609a795fb43931395a37d07e310d31ff (diff)
[android] Renamed method in SocialAuthDialogFragment
Diffstat (limited to 'android/src')
-rw-r--r--android/src/com/mapswithme/maps/auth/SocialAuthDialogFragment.java8
1 files 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();