|
@@ -47,7 +47,7 @@ class KeyboardGuidePage extends BasePage<KeyboardGuidePageController> {
|
|
|
// 切换到前台时,重新检查设置,更新按钮状态
|
|
// 切换到前台时,重新检查设置,更新按钮状态
|
|
|
controller.checkSetting();
|
|
controller.checkSetting();
|
|
|
// 如果选择为默认键盘了,则尝试显示引导弹窗
|
|
// 如果选择为默认键盘了,则尝试显示引导弹窗
|
|
|
- if (controller.hasFloatingWindowPermission.value) {
|
|
|
|
|
|
|
+ if (controller.isDefaultKeyboard.value) {
|
|
|
controller.showGuideOverlayDialog();
|
|
controller.showGuideOverlayDialog();
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -134,11 +134,11 @@ class KeyboardGuidePage extends BasePage<KeyboardGuidePageController> {
|
|
|
/// 内容
|
|
/// 内容
|
|
|
Widget _buildContent() {
|
|
Widget _buildContent() {
|
|
|
return Obx(() {
|
|
return Obx(() {
|
|
|
- // 有悬浮窗权限,显示聊天列表
|
|
|
|
|
- if (controller.hasFloatingWindowPermission.value) {
|
|
|
|
|
|
|
+ // 选择了默认键盘,显示聊天列表
|
|
|
|
|
+ if (controller.isDefaultKeyboard.value) {
|
|
|
return _buildChatList();
|
|
return _buildChatList();
|
|
|
} else {
|
|
} else {
|
|
|
- // 没权限,显示引导动画
|
|
|
|
|
|
|
+ // 未选择,显示引导动画
|
|
|
return _buildGuideAnimation();
|
|
return _buildGuideAnimation();
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|