|
|
|
@ -29,7 +29,9 @@ import android.widget.ImageView; |
|
|
|
import android.widget.LinearLayout; |
|
|
|
import android.widget.RelativeLayout; |
|
|
|
import android.widget.TextView; |
|
|
|
|
|
|
|
import org.greenrobot.eventbus.EventBus; |
|
|
|
import org.greenrobot.eventbus.Subscribe; |
|
|
|
import org.greenrobot.eventbus.ThreadMode; |
|
|
|
import androidx.annotation.NonNull; |
|
|
|
import androidx.recyclerview.widget.LinearLayoutManager; |
|
|
|
import androidx.recyclerview.widget.RecyclerView; |
|
|
|
@ -68,6 +70,7 @@ import java.util.TimerTask; |
|
|
|
import cz.msebera.android.httpclient.Header; |
|
|
|
import okhttp3.MediaType; |
|
|
|
import okhttp3.RequestBody; |
|
|
|
import qianmu.container.R; |
|
|
|
import qianmu.container.activity.H5.CoreService; |
|
|
|
import qianmu.container.activity.H5.UpdateFileActivity; |
|
|
|
import qianmu.container.activity.ViewBase; |
|
|
|
@ -1300,7 +1303,7 @@ public class ViewScreenSaver extends ViewBase<ViewScreenSaverBinding> { |
|
|
|
protected void initView() { |
|
|
|
width = DeviceUtil.screenWidth((Activity) context); |
|
|
|
height = DeviceUtil.screenHeight((Activity) context); |
|
|
|
|
|
|
|
EventBus.getDefault().register(this); |
|
|
|
} |
|
|
|
|
|
|
|
public void setData(List<NewProgramBean> data) { |
|
|
|
@ -3868,6 +3871,24 @@ public class ViewScreenSaver extends ViewBase<ViewScreenSaverBinding> { |
|
|
|
class MyWebViewClient extends WebViewClient { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
@Subscribe(threadMode = ThreadMode.MAIN) |
|
|
|
public void onMessageEvent(MessageEvent message) { |
|
|
|
if (message != null){ |
|
|
|
switch (message.getCode()) { |
|
|
|
case Constant.ACTION_UPDATE_WEBVIEW://刷新webView
|
|
|
|
if (webList != null && !webList.isEmpty()) { |
|
|
|
for (WebView webView : webList) { |
|
|
|
if (webView != null) { |
|
|
|
webView.clearCache(true); |
|
|
|
webView.loadUrl(webView.getUrl()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
/** |
|
|
|
* 添加水牌 |
|
|
|
* */ |
|
|
|
|