You've already forked FIDO2_Bridge
mirror of
https://github.com/token2/FIDO2_Bridge.git
synced 2026-03-13 11:12:26 -07:00
Set security key icon in credential selector
This commit is contained in:
@@ -2,6 +2,7 @@ package pl.lebihan.authnkey
|
||||
|
||||
import android.app.PendingIntent
|
||||
import android.content.Intent
|
||||
import android.graphics.drawable.Icon
|
||||
import android.os.Build
|
||||
import android.os.CancellationSignal
|
||||
import android.os.OutcomeReceiver
|
||||
@@ -92,6 +93,7 @@ class AuthnkeyCredentialService : CredentialProviderService() {
|
||||
request.beginGetCredentialOptions.first() as BeginGetPublicKeyCredentialOption
|
||||
)
|
||||
.setDisplayName(getString(R.string.credential_entry_tap))
|
||||
.setIcon(Icon.createWithResource(this, R.drawable.security_key_gray_24))
|
||||
.build()
|
||||
|
||||
credentialEntries.add(entry)
|
||||
@@ -185,6 +187,7 @@ class AuthnkeyCredentialService : CredentialProviderService() {
|
||||
option
|
||||
)
|
||||
.setDisplayName(getString(R.string.credential_get_description, rpId))
|
||||
.setIcon(Icon.createWithResource(this, R.drawable.security_key_gray_24))
|
||||
.build()
|
||||
|
||||
entries.add(entry)
|
||||
|
||||
9
app/src/main/res/drawable/security_key_gray_24.xml
Normal file
9
app/src/main/res/drawable/security_key_gray_24.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="960"
|
||||
android:viewportHeight="960">
|
||||
<path
|
||||
android:fillColor="#607D8B"
|
||||
android:pathData="M400,920Q367,920 343.5,896.5Q320,873 320,840L320,720L320,720Q287,720 263.5,696.5Q240,673 240,640L240,120Q240,87 263.5,63.5Q287,40 320,40L640,40Q673,40 696.5,63.5Q720,87 720,120L720,640Q720,673 696.5,696.5Q673,720 640,720L640,720L640,840Q640,873 616.5,896.5Q593,920 560,920L400,920ZM480,500Q530,500 565,465Q600,430 600,380Q600,330 565,295Q530,260 480,260Q430,260 395,295Q360,330 360,380Q360,430 395,465Q430,500 480,500ZM400,840L560,840Q560,840 560,840Q560,840 560,840L560,720L400,720L400,840Q400,840 400,840Q400,840 400,840ZM480,420Q463,420 451.5,408.5Q440,397 440,380Q440,363 451.5,351.5Q463,340 480,340Q497,340 508.5,351.5Q520,363 520,380Q520,397 508.5,408.5Q497,420 480,420Z"/>
|
||||
</vector>
|
||||
Reference in New Issue
Block a user