From 12094f51d5280e0b1374ee9c09803c4c888636fa Mon Sep 17 00:00:00 2001 From: duqingquan Date: Thu, 16 Mar 2023 15:48:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=85=E5=AD=98=E8=AD=A6=E5=91=8A=E6=8F=92?= =?UTF-8?q?=E4=BB=B6=20=E5=8E=BB=E6=8E=89=E9=BB=98=E8=AE=A4=E5=80=BC?= =?UTF-8?q?=EF=BC=8C=E9=81=BF=E5=85=8D=E5=8F=98=E9=87=8F=E6=9C=AA=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E7=9A=84=E8=AD=A6=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uni_modules/uni-memorywarning/utssdk/app-android/index.uts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/uni_modules/uni-memorywarning/utssdk/app-android/index.uts b/uni_modules/uni-memorywarning/utssdk/app-android/index.uts index 8cab5e7..a28f12a 100644 --- a/uni_modules/uni-memorywarning/utssdk/app-android/index.uts +++ b/uni_modules/uni-memorywarning/utssdk/app-android/index.uts @@ -26,8 +26,9 @@ export function onMemoryWarning(callback: UTSCallback) { listeners.push(callback) } + @Suppress("DEPRECATION") -export function offMemoryWarning(callback: UTSCallback | null = null) { +export function offMemoryWarning(callback: UTSCallback | null) { if(callback == null){ // 清除全部回调 @@ -46,3 +47,4 @@ export function offMemoryWarning(callback: UTSCallback | null = null) { UTSAndroid.offAppTrimMemory(onAppTrimMemoryListener) } } + -- GitLab