mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-27 11:12:15 -05:00
display unknown keys red rather than orange
For an unknown key, there is no indication of the state the key is in. To indicate both immediate action required, and to make this status equal to its worst case (rather than *better* than its worst case), the status is displayed in red. At some point, we will probably want to download unknown keys automatically, at which point an unknown key will actually be an error state. This is an intermediate solution until then.
This commit is contained in:
parent
8717642198
commit
cd55871950
@ -475,7 +475,7 @@ public class KeyFormattingUtils {
|
|||||||
statusIcon.setImageDrawable(
|
statusIcon.setImageDrawable(
|
||||||
context.getResources().getDrawable(R.drawable.status_signature_unknown_cutout_24dp));
|
context.getResources().getDrawable(R.drawable.status_signature_unknown_cutout_24dp));
|
||||||
if (color == KeyFormattingUtils.DEFAULT_COLOR) {
|
if (color == KeyFormattingUtils.DEFAULT_COLOR) {
|
||||||
color = R.color.android_orange_light;
|
color = R.color.android_red_light;
|
||||||
}
|
}
|
||||||
statusIcon.setColorFilter(context.getResources().getColor(color),
|
statusIcon.setColorFilter(context.getResources().getColor(color),
|
||||||
PorterDuff.Mode.SRC_IN);
|
PorterDuff.Mode.SRC_IN);
|
||||||
|
Loading…
Reference in New Issue
Block a user