mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-04 16:25:05 -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()) {
|
if (entry.isSecretKey()) {
|
||||||
holder.mainUserId.setText(mActivity.getString(R.string.secret_key)
|
holder.mainUserId.setText(mActivity.getString(R.string.secret_key)
|
||||||
+ " " + userIdSplit[0]);
|
+ " " + userIdSplit[0]);
|
||||||
holder.mainUserId.setTextColor(Color.RED);
|
|
||||||
} else {
|
} else {
|
||||||
holder.mainUserId.setText(highlighter.highlight(userIdSplit[0]));
|
holder.mainUserId.setText(highlighter.highlight(userIdSplit[0]));
|
||||||
holder.mainUserId.setTextColor(Color.BLACK);
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
holder.mainUserId.setTextColor(Color.BLACK);
|
|
||||||
holder.mainUserId.setText(R.string.user_id_no_name);
|
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.status.setVisibility(View.GONE);
|
||||||
holder.algorithm.setVisibility(View.VISIBLE);
|
holder.algorithm.setVisibility(View.VISIBLE);
|
||||||
|
|
||||||
holder.mainUserId.setTextColor(getContext().getResources().getColor(R.color.black));
|
if (entry.isSecretKey()) {
|
||||||
holder.mainUserIdRest.setTextColor(getContext().getResources().getColor(R.color.black));
|
holder.mainUserId.setTextColor(Color.RED);
|
||||||
holder.keyId.setTextColor(getContext().getResources().getColor(R.color.black));
|
} else {
|
||||||
|
holder.mainUserId.setTextColor(Color.BLACK);
|
||||||
|
}
|
||||||
|
|
||||||
|
holder.mainUserIdRest.setTextColor(Color.BLACK);
|
||||||
|
holder.keyId.setTextColor(Color.BLACK);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (entry.getUserIds().size() == 1) {
|
if (entry.getUserIds().size() == 1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user