private void load ( ) { AccessToken accessToken = accessTokenStorage . getAccessToken ( ) ; if ( accessToken != null ) { AccessTokenSession session = new AccessTokenSession ( sessionConfiguration , accessTokenStorage ) ; rideRequestView . setSession ( session ) ; loadRideRequestView ( ) ; } else { login ( ) ; } }
Loads the appropriate view in the activity based on whether user is successfully authorized or not .