From 50f9b82ac862652e88444d727a32e0da1d824e9e Mon Sep 17 00:00:00 2001 From: zuoxiao <470321431@qq.com> Date: 星期一, 13 一月 2025 15:57:06 +0800 Subject: [PATCH] 1.分水房相关 2.删除极光推送相关配置 3.优化图片显示相关 --- app/src/main/java/com/dayu/pipirrapp/tool/MyWebViewInterface.java | 18 +++++++++++++++++- 1 files changed, 17 insertions(+), 1 deletions(-) diff --git a/app/src/main/java/com/dayu/pipirrapp/tool/MyWebViewInterface.java b/app/src/main/java/com/dayu/pipirrapp/tool/MyWebViewInterface.java index 525bd15..fb6fd97 100644 --- a/app/src/main/java/com/dayu/pipirrapp/tool/MyWebViewInterface.java +++ b/app/src/main/java/com/dayu/pipirrapp/tool/MyWebViewInterface.java @@ -11,7 +11,7 @@ * author: zuo * Date: 2024-01-18 * Time: 9:14 - * 澶囨敞锛氫緵Vue璋冪敤鍘熺敓 + * 澶囨敞锛氫緵js璋冪敤鍘熺敓 */ public class MyWebViewInterface { @@ -81,5 +81,21 @@ } } + /** + * 鍒锋柊鍦板浘涓績鐐瑰潗鏍� + */ + @JavascriptInterface + public void refreshCenter(double lng, double lat) { + if (myContext instanceof MapFragment) { + new Handler(Looper.getMainLooper()).post(new Runnable() { + @Override + public void run() { + // 鍦ㄤ富绾跨▼涓婃墽琛孶I鎿嶄綔 + // 鏇存柊鎴栨搷浣淯I鍏冪礌鐨勪唬鐮� + myContext.refreshCenterPoint(lng, lat); + } + }); + } + } } -- Gitblit v1.8.0