@ -124,7 +124,7 @@ public class ViewKeyUserIdsAdapter extends CursorAdapter implements AdapterView.
|
|||||||
|
|
||||||
if (cursor.getInt(mIsRevoked) > 0) {
|
if (cursor.getInt(mIsRevoked) > 0) {
|
||||||
vRank.setText(" ");
|
vRank.setText(" ");
|
||||||
vVerified.setImageResource(android.R.drawable.presence_away);
|
vVerified.setImageResource(R.drawable.key_certify_revoke);
|
||||||
|
|
||||||
// disable and strike through text for revoked user ids
|
// disable and strike through text for revoked user ids
|
||||||
vUserId.setEnabled(false);
|
vUserId.setEnabled(false);
|
||||||
@ -138,11 +138,11 @@ public class ViewKeyUserIdsAdapter extends CursorAdapter implements AdapterView.
|
|||||||
int verified = cursor.getInt(mVerifiedId);
|
int verified = cursor.getInt(mVerifiedId);
|
||||||
// TODO introduce own resources for this :)
|
// TODO introduce own resources for this :)
|
||||||
if (verified == Certs.VERIFIED_SECRET) {
|
if (verified == Certs.VERIFIED_SECRET) {
|
||||||
vVerified.setImageResource(android.R.drawable.presence_online);
|
vVerified.setImageResource(R.drawable.key_certify_ok_depth0);
|
||||||
} else if (verified == Certs.VERIFIED_SELF) {
|
} else if (verified == Certs.VERIFIED_SELF) {
|
||||||
vVerified.setImageResource(android.R.drawable.presence_invisible);
|
vVerified.setImageResource(R.drawable.key_certify_ok_self);
|
||||||
} else {
|
} else {
|
||||||
vVerified.setImageResource(android.R.drawable.presence_busy);
|
vVerified.setImageResource(R.drawable.key_certify_error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -135,10 +135,10 @@ public class UserIdEditor extends LinearLayout implements Editor, OnClickListene
|
|||||||
Matcher emailMatcher = Patterns.EMAIL_ADDRESS.matcher(email);
|
Matcher emailMatcher = Patterns.EMAIL_ADDRESS.matcher(email);
|
||||||
if (emailMatcher.matches()) {
|
if (emailMatcher.matches()) {
|
||||||
mEmail.setCompoundDrawablesWithIntrinsicBounds(0, 0,
|
mEmail.setCompoundDrawablesWithIntrinsicBounds(0, 0,
|
||||||
android.R.drawable.presence_online, 0);
|
R.drawable.uid_mail_ok, 0);
|
||||||
} else {
|
} else {
|
||||||
mEmail.setCompoundDrawablesWithIntrinsicBounds(0, 0,
|
mEmail.setCompoundDrawablesWithIntrinsicBounds(0, 0,
|
||||||
android.R.drawable.presence_offline, 0);
|
R.drawable.uid_mail_bad, 0);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// remove drawable if email is empty
|
// remove drawable if email is empty
|
||||||
|
BIN
OpenKeychain/src/main/res/drawable-hdpi/key_certify_error.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.2 KiB |
BIN
OpenKeychain/src/main/res/drawable-hdpi/key_certify_ok_self.png
Normal file
After Width: | Height: | Size: 898 B |
BIN
OpenKeychain/src/main/res/drawable-hdpi/key_certify_revoke.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
OpenKeychain/src/main/res/drawable-hdpi/uid_mail_bad.png
Normal file
After Width: | Height: | Size: 942 B |
BIN
OpenKeychain/src/main/res/drawable-hdpi/uid_mail_ok.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
OpenKeychain/src/main/res/drawable-ldpi/key_certify_error.png
Normal file
After Width: | Height: | Size: 652 B |
After Width: | Height: | Size: 646 B |
BIN
OpenKeychain/src/main/res/drawable-ldpi/key_certify_ok_self.png
Normal file
After Width: | Height: | Size: 507 B |
BIN
OpenKeychain/src/main/res/drawable-ldpi/key_certify_revoke.png
Normal file
After Width: | Height: | Size: 663 B |
BIN
OpenKeychain/src/main/res/drawable-ldpi/uid_mail_bad.png
Normal file
After Width: | Height: | Size: 531 B |
BIN
OpenKeychain/src/main/res/drawable-ldpi/uid_mail_ok.png
Normal file
After Width: | Height: | Size: 646 B |
BIN
OpenKeychain/src/main/res/drawable-mdpi/key_certify_error.png
Normal file
After Width: | Height: | Size: 884 B |
After Width: | Height: | Size: 862 B |
BIN
OpenKeychain/src/main/res/drawable-mdpi/key_certify_ok_self.png
Normal file
After Width: | Height: | Size: 627 B |
BIN
OpenKeychain/src/main/res/drawable-mdpi/key_certify_revoke.png
Normal file
After Width: | Height: | Size: 853 B |
BIN
OpenKeychain/src/main/res/drawable-mdpi/uid_mail_bad.png
Normal file
After Width: | Height: | Size: 647 B |
BIN
OpenKeychain/src/main/res/drawable-mdpi/uid_mail_ok.png
Normal file
After Width: | Height: | Size: 862 B |
BIN
OpenKeychain/src/main/res/drawable-xhdpi/key_certify_error.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 1.6 KiB |
BIN
OpenKeychain/src/main/res/drawable-xhdpi/key_certify_ok_self.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
OpenKeychain/src/main/res/drawable-xhdpi/key_certify_revoke.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
OpenKeychain/src/main/res/drawable-xhdpi/uid_mail_bad.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
OpenKeychain/src/main/res/drawable-xhdpi/uid_mail_ok.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
OpenKeychain/src/main/res/drawable-xxhdpi/key_certify_error.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 2.2 KiB |
BIN
OpenKeychain/src/main/res/drawable-xxhdpi/key_certify_revoke.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
OpenKeychain/src/main/res/drawable-xxhdpi/uid_mail_bad.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
OpenKeychain/src/main/res/drawable-xxhdpi/uid_mail_ok.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
@ -79,7 +79,7 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:id="@+id/verified"
|
android:id="@+id/verified"
|
||||||
android:layout_gravity="center"
|
android:layout_gravity="center"
|
||||||
android:src="@android:drawable/presence_online"
|
android:src="@drawable/key_certify_ok_depth0"
|
||||||
android:paddingLeft="25dp" />
|
android:paddingLeft="25dp" />
|
||||||
</FrameLayout>
|
</FrameLayout>
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:id="@+id/certified"
|
android:id="@+id/certified"
|
||||||
android:src="@android:drawable/presence_invisible"
|
android:src="@drawable/key_certify_ok_self"
|
||||||
android:layout_marginLeft="5dp"
|
android:layout_marginLeft="5dp"
|
||||||
android:layout_marginRight="5dp" />
|
android:layout_marginRight="5dp" />
|
||||||
|
|
||||||
|