Skip to content

Commit

Permalink
#5: Workaround for java.lang.UnsupportedOperationException: The new e…
Browse files Browse the repository at this point in the history
…mbedding does not support the old FlutterView. at io.flutter.embedding.engine.plugins.shim.ShimRegistrar.view(ShimRegistrar.java:82)
  • Loading branch information
espresso3389 committed Jan 30, 2020
1 parent 9e84ac9 commit cd98600
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class Oauth2CustomUriSchemePlugin(registrar: Registrar): MethodCallHandler {
customScheme = call.arguments as String?
result.success(null)
} else if (call.method == "closeChrome") {
val myIntent = Intent(registrar.view().context, registrar.activity().javaClass)
val myIntent = Intent(registrar.activity(), registrar.activity().javaClass)
myIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)
myIntent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP)
registrar.view().context.startActivity(myIntent)
Expand Down

0 comments on commit cd98600

Please sign in to comment.