From e238233dcf34a183af4861176789d1feb1eb51fa Mon Sep 17 00:00:00 2001 From: jcesarmobile Date: Wed, 6 Oct 2021 17:21:12 +0200 Subject: [PATCH] fix(android): Support cordova-android 10 (#5103) --- .../com/getcapacitor/cordova/MockCordovaInterfaceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/android/capacitor/src/main/java/com/getcapacitor/cordova/MockCordovaInterfaceImpl.java b/android/capacitor/src/main/java/com/getcapacitor/cordova/MockCordovaInterfaceImpl.java index 46d244236b..0f7be6b40f 100644 --- a/android/capacitor/src/main/java/com/getcapacitor/cordova/MockCordovaInterfaceImpl.java +++ b/android/capacitor/src/main/java/com/getcapacitor/cordova/MockCordovaInterfaceImpl.java @@ -1,7 +1,7 @@ package com.getcapacitor.cordova; -import android.app.Activity; import android.util.Pair; +import androidx.appcompat.app.AppCompatActivity; import java.util.concurrent.Executors; import org.apache.cordova.CordovaInterfaceImpl; import org.apache.cordova.CordovaPlugin; @@ -9,7 +9,7 @@ public class MockCordovaInterfaceImpl extends CordovaInterfaceImpl { - public MockCordovaInterfaceImpl(Activity activity) { + public MockCordovaInterfaceImpl(AppCompatActivity activity) { super(activity, Executors.newCachedThreadPool()); }