mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-12-25 00:18:51 -05:00
Fix color in import list
This commit is contained in:
parent
c2e7c2416f
commit
4f37c88ea7
@ -138,13 +138,10 @@ public class ImportKeysAdapter extends ArrayAdapter<ImportKeysListEntry> {
|
||||
if (entry.isSecretKey()) {
|
||||
holder.mainUserId.setText(mActivity.getString(R.string.secret_key)
|
||||
+ " " + userIdSplit[0]);
|
||||
holder.mainUserId.setTextColor(Color.RED);
|
||||
} else {
|
||||
holder.mainUserId.setText(highlighter.highlight(userIdSplit[0]));
|
||||
holder.mainUserId.setTextColor(Color.BLACK);
|
||||
}
|
||||
} else {
|
||||
holder.mainUserId.setTextColor(Color.BLACK);
|
||||
holder.mainUserId.setText(R.string.user_id_no_name);
|
||||
}
|
||||
|
||||
@ -187,9 +184,14 @@ public class ImportKeysAdapter extends ArrayAdapter<ImportKeysListEntry> {
|
||||
holder.status.setVisibility(View.GONE);
|
||||
holder.algorithm.setVisibility(View.VISIBLE);
|
||||
|
||||
holder.mainUserId.setTextColor(getContext().getResources().getColor(R.color.black));
|
||||
holder.mainUserIdRest.setTextColor(getContext().getResources().getColor(R.color.black));
|
||||
holder.keyId.setTextColor(getContext().getResources().getColor(R.color.black));
|
||||
if (entry.isSecretKey()) {
|
||||
holder.mainUserId.setTextColor(Color.RED);
|
||||
} else {
|
||||
holder.mainUserId.setTextColor(Color.BLACK);
|
||||
}
|
||||
|
||||
holder.mainUserIdRest.setTextColor(Color.BLACK);
|
||||
holder.keyId.setTextColor(Color.BLACK);
|
||||
}
|
||||
|
||||
if (entry.getUserIds().size() == 1) {
|
||||
|
Loading…
Reference in New Issue
Block a user