From: David A. Velasco Date: Fri, 23 Aug 2013 12:37:14 +0000 (+0200) Subject: Merge branch 'saml_based_federated_single_sign_on' into saml_based_federated_single_s... X-Git-Tag: oc-android-1.4.6~17^2~5 X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/commitdiff_plain/dc02769e492205edce2a206cafe47152d526c09b?hp=-c Merge branch 'saml_based_federated_single_sign_on' into saml_based_federated_single_sign_on_expired --- dc02769e492205edce2a206cafe47152d526c09b diff --combined res/layout-land/account_setup.xml index 2ae4b33f,bff91f5d..fed4dceb --- a/res/layout-land/account_setup.xml +++ b/res/layout-land/account_setup.xml @@@ -43,6 -43,7 +43,7 @@@ android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="1" + android:id="@+id/scroll" android:fillViewport="true" android:orientation="vertical" > @@@ -50,7 -51,6 +51,6 @@@ android:id="@+id/LinearLayout1" android:layout_width="match_parent" android:layout_height="wrap_content" - android:focusable="true" android:gravity="center" android:orientation="vertical" android:padding="8dp" > @@@ -64,14 -64,7 +64,14 @@@ android:onClick="onRefreshClick" android:text="@string/auth_check_server" android:visibility="gone" /> - + + android:orientation="vertical" + android:id="@+id/scroll" + > @@@ -49,15 -50,6 +50,15 @@@ android:onClick="onRefreshClick" android:text="@string/auth_check_server" android:visibility="gone" /> + + 0) { - Log_OC.d(TAG, "Successful SSO - time to save the account"); mAuthToken = sessionCookie; - boolean success = true; + boolean success = false; if (mAction == ACTION_CREATE) { success = createAccount(); } else { - updateToken(); + success = updateToken(); } if (success) { finish(); @@@ -1611,24 -1579,20 +1620,32 @@@ } + /** Show auth_message + * + * @param message + */ + private void showAuthMessage(String message) { + mAuthMessage.setVisibility(View.VISIBLE); + mAuthMessage.setText(message); + } + + private void hideAuthMessage() { + mAuthMessage.setVisibility(View.GONE); + } - private void syncAccount(){ /// immediately request for the synchronization of the new account Bundle bundle = new Bundle(); bundle.putBoolean(ContentResolver.SYNC_EXTRAS_MANUAL, true); ContentResolver.requestSync(mAccount, AccountAuthenticator.AUTHORITY, bundle); } + + @Override + public boolean onTouchEvent(MotionEvent event) { + if (AccountAuthenticator.AUTH_TOKEN_TYPE_SAML_WEB_SSO_SESSION_COOKIE.equals(mAuthTokenType) && + mHostUrlInput.hasFocus() && event.getAction() == MotionEvent.ACTION_DOWN) { + checkOcServer(); + } + return super.onTouchEvent(event); + } }