浏览器长按保存
2023-01-24 09:16:15 最后更新
//长按触屏事件
s wv = st_vW
java(htr,wv,"android.webkit.WebView.getHitTestResult")
java(type,htr,"android.webkit.WebView$HitTestResult.getType")
javags(imagetype,null,"android.webkit.WebView$HitTestResult","IMAGE_TYPE")
javags(imageurl,null,"android.webkit.WebView$HitTestResult","SRC_IMAGE_ANCHOR_TYPE")
syso(type)
f(type==imagetype||type==imageurl){
  java(url,htr,"android.webkit.WebView$HitTestResult.getExtra")
  fdir("%llyimage",path)
  fl(path,dir)
  sgszl(dir,size)
  ss(path "/" size ".jpg",path)
  t(){
  hd(url,path,c)
  ufnsui(){
    utw(null,"图片预览","dialog.iyu",false,v)
    {
    }
  gvs(v,1,vw)
  us(vw,"src",path)
  }
}
}
茶靡上传