diff --git a/stripe/build.gradle b/stripe/build.gradle index 76ca6b032f3..3d201036af1 100644 --- a/stripe/build.gradle +++ b/stripe/build.gradle @@ -23,7 +23,7 @@ configurations { dependencies { implementation 'androidx.annotation:annotation:1.1.0' - implementation 'androidx.appcompat:appcompat:1.1.0' + implementation 'androidx.appcompat:appcompat:1.2.0-rc02' implementation 'androidx.recyclerview:recyclerview:1.1.0' implementation "androidx.lifecycle:lifecycle-livedata-ktx:$androidLifecycleVersion" implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$androidLifecycleVersion" diff --git a/stripe/src/main/java/com/stripe/android/view/PaymentAuthWebView.kt b/stripe/src/main/java/com/stripe/android/view/PaymentAuthWebView.kt index 32f22c60a4d..54bbbd14a3c 100644 --- a/stripe/src/main/java/com/stripe/android/view/PaymentAuthWebView.kt +++ b/stripe/src/main/java/com/stripe/android/view/PaymentAuthWebView.kt @@ -6,7 +6,6 @@ import android.app.Activity import android.content.Context import android.content.Intent import android.content.pm.PackageManager -import android.content.res.Configuration import android.net.Uri import android.os.Build import android.util.AttributeSet @@ -31,7 +30,7 @@ internal class PaymentAuthWebView @JvmOverloads constructor( context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0 -) : WebView(createContext(context), attrs, defStyleAttr) { +) : WebView(context, attrs, defStyleAttr) { private var webViewClient: PaymentAuthWebViewClient? = null init { @@ -109,18 +108,6 @@ internal class PaymentAuthWebView @JvmOverloads constructor( loadUrl(BLANK_PAGE) } - private companion object { - /** - * Fix for crash in API 21 and 22 - * - * See https://stackoverflow.com/q/41025200/ - * for more context. - */ - private fun createContext(context: Context): Context { - return context.createConfigurationContext(Configuration()) - } - } - internal class PaymentAuthWebViewClient( private val activity: Activity, private val packageManager: PackageManager,