diamirio / BiometricAuth

Backport of Android Pie's BiometricPrompt using Kotlin and RxJava
Other
44 stars 6 forks source link

Use FragmentActivity instead of AppCompatActivity #14

Closed AlexGrafl closed 4 years ago

AlexGrafl commented 4 years ago

The BiometricAuth.create function requires an activity as parameter which is typed as the androidx.appcompat.app.AppCompatActivity activity. Looking through the source it seems the only thing needed from the specific activity is the supportFragmentManager which is provided through the androidx.fragment.app.FragmentActivity super class. Therefore it should not be required to use AppCompatActivity instead of FragmentActivity for this parameter.