@@ -196,8 +196,9 @@ protected void onCreate(Bundle savedInstanceState) {
196196 AuthorizationResponse response = AuthorizationResponse .fromIntent (data );
197197 AuthorizationException ex = AuthorizationException .fromIntent (data );
198198
199- System .out .println ("Access Token " + response .authorizationCode );
200199 exchangeAuthorizationCode (response );
200+ } else {
201+ mSignInButton .setEnabled (true );
201202 }
202203 });
203204 mAferoClient = new AferoClientRetrofit2 (configBuilder .build (), clientHelper .getClient ());
@@ -435,7 +436,7 @@ private void stopDeviceInspector() {
435436 }
436437
437438 private void setupViews () {
438- if (BuildConfig .AFERO_OAUTH_AUTH_URL ! = null ) {
439+ if (BuildConfig .AFERO_CLIENT_SECRET = = null ) {
439440 mEmailEditText .setVisibility (View .GONE );
440441 mPasswordEditText .setVisibility (View .GONE );
441442 mForgotPasswordButton .setVisibility (View .GONE );
@@ -502,7 +503,9 @@ public boolean onEditorActionSignIn(TextView textView, int actionId, KeyEvent ev
502503
503504 @ OnClick (R .id .button_sign_in )
504505 public void onClickSignIn () {
505- if (BuildConfig .AFERO_OAUTH_AUTH_URL != null ) {
506+ if (BuildConfig .AFERO_OAUTH_AUTH_URL != null
507+ && BuildConfig .AFERO_OAUTH_REDIRECT_SCHEME != null &&
508+ BuildConfig .AFERO_OAUTH_REDIRECT_HOST != null ) {
506509
507510 mSignInButton .setEnabled (false );
508511 showConclaveStatus (ConclaveClient .Status .CONNECTING );
0 commit comments