mirror of
https://github.com/nextcloud/android.git
synced 2024-11-29 02:38:58 +03:00
fix white text on configuration screen
This commit is contained in:
parent
5ca823ac92
commit
fc49e582c5
3 changed files with 9 additions and 9 deletions
|
@ -143,9 +143,9 @@
|
|||
|
||||
<Button
|
||||
android:id="@+id/buttonOK"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight=".50"
|
||||
android:layout_weight=".75"
|
||||
android:onClick="onOkClick"
|
||||
android:textColor="@android:color/black"
|
||||
android:text="@string/setup_btn_connect" >
|
||||
|
@ -153,9 +153,9 @@
|
|||
|
||||
<Button
|
||||
android:id="@+id/buttonNotUser"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight=".50"
|
||||
android:layout_weight=".75"
|
||||
android:onClick="onNotUserClick"
|
||||
android:textColor="@android:color/black"
|
||||
android:text="Get started!" >
|
||||
|
|
|
@ -10,8 +10,6 @@ import android.util.Log;
|
|||
public class AccountAuthenticator extends AbstractAccountAuthenticator {
|
||||
public static final String OPTIONS_USERNAME = "username";
|
||||
public static final String OPTIONS_PASSWORD = "password";
|
||||
public static final String OPTIONS_FILE_LIST_SYNC_ENABLED = "filelist";
|
||||
public static final String OPTIONS_PINNED_FILE_SYNC_ENABLED = "pinned";
|
||||
|
||||
public static final String ACCOUNT_TYPE = "owncloud";
|
||||
public static final String AUTH_TOKEN_TYPE = "org.owncloud";
|
||||
|
|
|
@ -21,6 +21,8 @@ package eu.alefzero.owncloud.ui.activity;
|
|||
import java.net.MalformedURLException;
|
||||
import java.net.URL;
|
||||
|
||||
import com.actionbarsherlock.ActionBarSherlock;
|
||||
|
||||
import android.accounts.Account;
|
||||
import android.accounts.AccountAuthenticatorActivity;
|
||||
import android.accounts.AccountManager;
|
||||
|
@ -167,7 +169,7 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity {
|
|||
url_text.setTextColor(Color.RED);
|
||||
hasErrors = true;
|
||||
} else {
|
||||
url_text.setTextColor(android.R.color.primary_text_light);
|
||||
url_text.setTextColor(android.R.color.black);
|
||||
}
|
||||
try {
|
||||
String url_str = url_text.getText().toString();
|
||||
|
@ -190,14 +192,14 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity {
|
|||
username_text.setTextColor(Color.RED);
|
||||
hasErrors = true;
|
||||
} else {
|
||||
username_text.setTextColor(android.R.color.primary_text_light);
|
||||
username_text.setTextColor(android.R.color.black);
|
||||
}
|
||||
|
||||
if (password_text.getText().toString().trim().length() == 0) {
|
||||
password_text.setTextColor(Color.RED);
|
||||
hasErrors = true;
|
||||
} else {
|
||||
password_text.setTextColor(android.R.color.primary_text_light);
|
||||
password_text.setTextColor(android.R.color.black);
|
||||
}
|
||||
if (hasErrors) {
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue