Skip to content

Commit

Permalink
teste correção de erros initPluggable
Browse files Browse the repository at this point in the history
  • Loading branch information
caiobraga committed Apr 25, 2022
1 parent eeda67f commit 40f355e
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,14 @@ class InitPluggable : Pluggable {
if (!isInitCallbackCalled) {
(PreferencesManager.getCallbackHandle(context, Keys.INIT_CALLBACK_HANDLE_KEY))?.let { initCallback ->
val initialDataMap = PreferencesManager.getDataCallback(context, Keys.INIT_DATA_CALLBACK_KEY)
val backgroundChannel = MethodChannel(IsolateHolderService.backgroundEngine?.dartExecutor?.binaryMessenger,

var binaryMessenger : BinaryMessenger? = IsolateHolderService.backgroundEngine?.dartExecutor?.binaryMessenger;

if(binaryMessenger != null){
val backgroundChannel = MethodChannel(binaryMessenger!,
Keys.BACKGROUND_CHANNEL_ID)
}

Handler(context.mainLooper)
.post {
backgroundChannel.invokeMethod(Keys.BCM_INIT,
Expand Down

0 comments on commit 40f355e

Please sign in to comment.