From 74c24caae90d23fa1ab8b5b089f036cb5b917955 Mon Sep 17 00:00:00 2001 From: 21pages Date: Wed, 29 May 2024 20:38:56 +0800 Subject: [PATCH] not show paste menu when mobile control mobile (#8204) Signed-off-by: 21pages --- flutter/lib/common/widgets/toolbar.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flutter/lib/common/widgets/toolbar.dart b/flutter/lib/common/widgets/toolbar.dart index 7e0d32ab7..78e8e7a83 100644 --- a/flutter/lib/common/widgets/toolbar.dart +++ b/flutter/lib/common/widgets/toolbar.dart @@ -115,7 +115,10 @@ List toolbarControls(BuildContext context, String id, FFI ffi) { ); } // paste - if (isMobile && perms['keyboard'] != false && perms['clipboard'] != false) { + if (isMobile && + pi.platform != kPeerPlatformAndroid && + perms['keyboard'] != false && + perms['clipboard'] != false) { v.add(TTextMenu( child: Text(translate('Paste')), onPressed: () async {