Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ public void onMethodCall(@NonNull MethodCall call, @NonNull Result result) {
/// 判断是否初始化过或者是否是同步登录,如果是将进行再次初始化
if (oneKeyLoginPublic == null || !isDelay) {
oneKeyLoginPublic = new OneKeyLoginPublic(mActivity, _events, call.arguments);
} else {
oneKeyLoginPublic.refreshUiConfig(call.arguments);
}
}
break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,15 @@ public OneKeyLoginPublic(Activity activity, EventChannel.EventSink _eventSink, O
}
}

/**
* 重复初始化时刷新UI
*/
public void refreshUiConfig(Object arguments) {
jsonObject = formatParmas(arguments);
config = getFormatConfig(jsonObject);
mUIConfig = BaseUIConfig.init(jsonObject.getIntValue("pageType"));
}

/**
* 初始化SDK
*/
Expand Down