Broadcasting the ConnectionStatusUpdate.AUTHENTICATED event

This commit is contained in:
Nelson R. Perez 2018-08-09 09:38:25 -05:00
parent de3dc2b120
commit bad3bdaff8

View file

@ -242,6 +242,9 @@ public class NetworkService extends Service {
if(mLastCall.equals(RPC.CALL_LOGIN)){ if(mLastCall.equals(RPC.CALL_LOGIN)){
isLoggedIn = true; isLoggedIn = true;
// Broadcasting result
RxBus.getBusInstance().send(new ConnectionStatusUpdate(ConnectionStatusUpdate.AUTHENTICATED, ApiAccess.API_NONE));
checkNextRequestedApiAccess(); checkNextRequestedApiAccess();
}else if(mLastCall.equals(RPC.CALL_DATABASE)){ }else if(mLastCall.equals(RPC.CALL_DATABASE)){
// Deserializing integer response // Deserializing integer response