Customize buttons
[pub/Android/ownCloud.git] / src / de / mobilcom / debitel / cloud / android / authentication / AuthenticatorActivity.java
index 31578d9..049b478 100644 (file)
@@ -197,9 +197,14 @@ implements  OnRemoteOperationListener, OnSslValidatorListener, OnFocusChangeList
         /// complete label for 'register account' button\r
         Button b = (Button) findViewById(R.id.account_register);\r
         if (b != null) {\r
-            b.setText(String.format(getString(R.string.auth_register), getString(R.string.app_name)));\r
+            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
+        \r
         /// initialization\r
         mAccountMgr = AccountManager.get(this);\r
         mNewCapturedUriFromOAuth2Redirection = null;\r