forked from organicmaps/organicmaps
[android] Added connection check for auth dialog showing
This commit is contained in:
parent
d4fe66cb4b
commit
414d1d2182
1 changed files with 2 additions and 1 deletions
|
@ -14,6 +14,7 @@ import android.view.View;
|
|||
import com.mapswithme.maps.Framework;
|
||||
import com.mapswithme.maps.R;
|
||||
import com.mapswithme.maps.base.BaseMwmToolbarFragment;
|
||||
import com.mapswithme.util.ConnectionState;
|
||||
|
||||
/**
|
||||
* A base toolbar fragment which is responsible for the <b>authorization flow</b>,
|
||||
|
@ -44,7 +45,7 @@ public abstract class BaseMwmAuthorizationFragment extends BaseMwmToolbarFragmen
|
|||
|
||||
private void authorize()
|
||||
{
|
||||
if (Framework.nativeIsUserAuthenticated())
|
||||
if (Framework.nativeIsUserAuthenticated() || !ConnectionState.isConnected())
|
||||
{
|
||||
finishActivity();
|
||||
return;
|
||||
|
|
Loading…
Add table
Reference in a new issue