*/\r
@Override\r
protected void onCreate(Bundle savedInstanceState) {\r
- Log_OC.wtf(TAG, "onCreate init");\r
+ //Log_OC.wtf(TAG, "onCreate init");\r
super.onCreate(savedInstanceState);\r
getWindow().requestFeature(Window.FEATURE_NO_TITLE);\r
\r
/// initialize block to be moved to single Fragment to retrieve and validate credentials \r
initAuthorizationPreFragment(savedInstanceState);\r
\r
- Log_OC.wtf(TAG, "onCreate end");\r
+ //Log_OC.wtf(TAG, "onCreate end");\r
}\r
\r
private void initAuthTokenType() {\r
*/\r
@Override\r
protected void onSaveInstanceState(Bundle outState) {\r
- Log_OC.wtf(TAG, "onSaveInstanceState init" );\r
+ //Log_OC.wtf(TAG, "onSaveInstanceState init" );\r
super.onSaveInstanceState(outState);\r
\r
/// global state\r
outState.putInt(KEY_AUTH_STATUS_TEXT, mAuthStatusText);\r
outState.putString(KEY_AUTH_TOKEN, mAuthToken);\r
\r
- Log_OC.wtf(TAG, "onSaveInstanceState end" );\r
+ //Log_OC.wtf(TAG, "onSaveInstanceState end" );\r
}\r
\r
\r
*/\r
@Override\r
protected void onResume() {\r
- Log_OC.wtf(TAG, "onResume init" );\r
+ //Log_OC.wtf(TAG, "onResume init" );\r
super.onResume();\r
\r
// bound here to avoid spurious changes triggered by Android on device rotations\r
doOnResumeAndBound();\r
}\r
\r
- Log_OC.wtf(TAG, "onResume end" );\r
+ //Log_OC.wtf(TAG, "onResume end" );\r
}\r
\r
\r
@Override\r
protected void onPause() {\r
- Log_OC.wtf(TAG, "onPause init" );\r
+ //Log_OC.wtf(TAG, "onPause init" );\r
if (mOperationsServiceBinder != null) {\r
- Log_OC.wtf(TAG, "unregistering to listen for operation callbacks" );\r
+ //Log_OC.wtf(TAG, "unregistering to listen for operation callbacks" );\r
mOperationsServiceBinder.removeOperationListener(this);\r
}\r
\r
mHostUrlInput.setOnFocusChangeListener(null);\r
\r
super.onPause();\r
- Log_OC.wtf(TAG, "onPause end" );\r
+ //Log_OC.wtf(TAG, "onPause end" );\r
}\r
\r
@Override\r
queryParameters);\r
\r
if (mOperationsServiceBinder != null) {\r
- Log_OC.wtf(TAG, "getting access token..." );\r
+ //Log_OC.wtf(TAG, "getting access token..." );\r
mWaitingForOpId = mOperationsServiceBinder.newOperation(getServerInfoIntent);\r
}\r
}\r
getServerInfoIntent.putExtra(OperationsService.EXTRA_SERVER_URL, uri);\r
getServerInfoIntent.putExtra(OperationsService.EXTRA_AUTH_TOKEN_TYPE, mAuthTokenType);\r
if (mOperationsServiceBinder != null) {\r
- Log_OC.wtf(TAG, "checking server..." );\r
+ //Log_OC.wtf(TAG, "checking server..." );\r
mWaitingForOpId = mOperationsServiceBinder.newOperation(getServerInfoIntent);\r
}\r
\r
mServerStatusText = R.string.auth_wtf_reenter_URL;\r
showServerStatus();\r
mOkButton.setEnabled(false);\r
- Log_OC.wtf(TAG, "The user was allowed to click 'connect' to an unchecked server!!");\r
+ //Log_OC.wtf(TAG, "The user was allowed to click 'connect' to an unchecked server!!");\r
return;\r
}\r
\r
existenceCheckIntent.putExtra(OperationsService.EXTRA_FOLLOW_REDIRECTS, followRedirects);\r
\r
if (mOperationsServiceBinder != null) {\r
- Log_OC.wtf(TAG, "starting existenceCheckRemoteOperation..." );\r
+ //Log_OC.wtf(TAG, "starting existenceCheckRemoteOperation..." );\r
mWaitingForOpId = mOperationsServiceBinder.newOperation(existenceCheckIntent);\r
}\r
}\r
onGetOAuthAccessTokenFinish(result);\r
\r
} else if (operation instanceof ExistenceCheckRemoteOperation) {\r
- Log_OC.wtf(TAG, "received detection response through callback" );\r
+ //Log_OC.wtf(TAG, "received detection response through callback" );\r
if (AccountTypeUtils.getAuthTokenTypeSamlSessionCookie(MainApp.getAccountType()).equals(mAuthTokenType)) {\r
onSamlBasedFederatedSingleSignOnAuthorizationStart(result);\r
\r
getUserNameIntent.putExtra(OperationsService.EXTRA_FOLLOW_REDIRECTS, followRedirects);\r
\r
if (mOperationsServiceBinder != null) {\r
- Log_OC.wtf(TAG, "starting getRemoteUserNameOperation..." );\r
+ //Log_OC.wtf(TAG, "starting getRemoteUserNameOperation..." );\r
mWaitingForOpId = mOperationsServiceBinder.newOperation(getUserNameIntent);\r
}\r
}\r
\r
\r
private void doOnResumeAndBound() {\r
- Log_OC.wtf(TAG, "registering to listen for operation callbacks" );\r
+ //Log_OC.wtf(TAG, "registering to listen for operation callbacks" );\r
mOperationsServiceBinder.addOperationListener(AuthenticatorActivity.this, mHandler);\r
if (mWaitingForOpId <= Integer.MAX_VALUE) {\r
mOperationsServiceBinder.dispatchResultIfFinished((int)mWaitingForOpId, this);\r
@Override\r
public void onServiceConnected(ComponentName component, IBinder service) {\r
if (component.equals(new ComponentName(AuthenticatorActivity.this, OperationsService.class))) {\r
- Log_OC.wtf(TAG, "Operations service connected");\r
+ //Log_OC.wtf(TAG, "Operations service connected");\r
mOperationsServiceBinder = (OperationsServiceBinder) service;\r
\r
doOnResumeAndBound();\r
*/
@Override
public int onStartCommand(Intent intent, int flags, int startId) {
- Log_OC.wtf(TAG, "onStartCommand init" );
+ //Log_OC.wtf(TAG, "onStartCommand init" );
Message msg = mServiceHandler.obtainMessage();
msg.arg1 = startId;
mServiceHandler.sendMessage(msg);
- Log_OC.wtf(TAG, "onStartCommand end" );
+ //Log_OC.wtf(TAG, "onStartCommand end" );
return START_NOT_STICKY;
}
@Override
public void onDestroy() {
- Log_OC.wtf(TAG, "onDestroy init" );
+ //Log_OC.wtf(TAG, "onDestroy init" );
super.onDestroy();
- Log_OC.wtf(TAG, "Clear mUndispatchedFinisiedOperations" );
+ //Log_OC.wtf(TAG, "Clear mUndispatchedFinisiedOperations" );
mUndispatchedFinishedOperations.clear();
- Log_OC.wtf(TAG, "onDestroy end" );
+ //Log_OC.wtf(TAG, "onDestroy end" );
}
*/
@Override
public IBinder onBind(Intent intent) {
- Log_OC.wtf(TAG, "onBind" );
+ //Log_OC.wtf(TAG, "onBind" );
return mBinder;
}
if (operation != null) {
mPendingOperations.add(new Pair<Target , RemoteOperation>(target, operation));
startService(new Intent(OperationsService.this, OperationsService.class));
- Log_OC.wtf(TAG, "New operation added, opId: " + operation.hashCode());
+ //Log_OC.wtf(TAG, "New operation added, opId: " + operation.hashCode());
// better id than hash? ; should be good enough by the time being
return operation.hashCode();
} else {
- Log_OC.wtf(TAG, "New operation failed, returned Long.MAX_VALUE");
+ //Log_OC.wtf(TAG, "New operation failed, returned Long.MAX_VALUE");
return Long.MAX_VALUE;
}
}
mUndispatchedFinishedOperations.remove(operationId);
if (undispatched != null) {
listener.onRemoteOperationFinish(undispatched.first, undispatched.second);
- Log_OC.wtf(TAG, "Sending callback later");
+ //Log_OC.wtf(TAG, "Sending callback later");
} else {
- Log_OC.wtf(TAG, "Not finished yet");
+ //Log_OC.wtf(TAG, "Not finished yet");
}
}
*/
private void nextOperation() {
- Log_OC.wtf(TAG, "nextOperation init" );
+ //Log_OC.wtf(TAG, "nextOperation init" );
Pair<Target, RemoteOperation> next = null;
synchronized(mPendingOperations) {