OC-1833: Add CustomButton class to can change the background of buttons
[pub/Android/ownCloud.git] / src / de / mobilcom / debitel / cloud / android / authentication / AuthenticatorActivity.java
index 049b478..3709779 100644 (file)
@@ -64,6 +64,7 @@ import de.mobilcom.debitel.cloud.android.operations.OwnCloudServerCheckOperation
 import de.mobilcom.debitel.cloud.android.operations.RemoteOperation;\r
 import de.mobilcom.debitel.cloud.android.operations.RemoteOperationResult;\r
 import de.mobilcom.debitel.cloud.android.operations.RemoteOperationResult.ResultCode;\r
+import de.mobilcom.debitel.cloud.android.ui.CustomButton;\r
 import de.mobilcom.debitel.cloud.android.ui.dialog.SamlWebViewDialog;\r
 import de.mobilcom.debitel.cloud.android.ui.dialog.SslValidatorDialog;\r
 import de.mobilcom.debitel.cloud.android.ui.dialog.SslValidatorDialog.OnSslValidatorListener;\r
@@ -187,7 +188,7 @@ implements  OnRemoteOperationListener, OnSslValidatorListener, OnFocusChangeList
         mOAuthAuthEndpointText = (TextView)findViewById(R.id.oAuthEntryPoint_1);\r
         mOAuthTokenEndpointText = (TextView)findViewById(R.id.oAuthEntryPoint_2);\r
         mOAuth2Check = (CheckBox) findViewById(R.id.oauth_onOff_check);\r
-        mOkButton = findViewById(R.id.buttonOK);\r
+        mOkButton = (CustomButton) findViewById(R.id.buttonOK);\r
         mAuthStatusLayout = (TextView) findViewById(R.id.auth_status_text); \r
         \r
         /// set Host Url Input Enabled\r
@@ -200,10 +201,10 @@ implements  OnRemoteOperationListener, OnSslValidatorListener, OnFocusChangeList
             b.setText(String.format(getString(R.string.auth_register), getString(R.string.app_name)));            \r
         }\r
 \r
-        /// complete background of 'OK' button\r
-        boolean customButtons = getResources().getBoolean(R.bool.custom_buttons);\r
-        if (customButtons)\r
-            mOkButton.setBackgroundResource(R.drawable.btn_default);\r
+//        /// complete background of 'OK' button\r
+//        boolean customButtons = getResources().getBoolean(R.bool.custom_buttons);\r
+//        if (customButtons)\r
+//            mOkButton.setBackgroundResource(R.drawable.btn_default);\r
         \r
         /// initialization\r
         mAccountMgr = AccountManager.get(this);\r