6.5.4礼物冠名

This commit is contained in:
18401019693
2023-08-19 16:05:30 +08:00
parent c20312b982
commit 345c9067aa
13 changed files with 36 additions and 21 deletions

View File

@@ -169,7 +169,7 @@ public class WebViewActivity extends AbsActivity {
mWebView.getSettings().setJavaScriptEnabled(true);
mWebView.getSettings().setDomStorageEnabled(true);
String appCachePath = mContext.getCacheDir().getAbsolutePath();
mWebView.getSettings().setAppCachePath(appCachePath);
// mWebView.getSettings().setAppCachePath(appCachePath);
mWebView.getSettings().setAllowFileAccess(true);
mWebView.getSettings().setUseWideViewPort(true); // 关键点
mWebView.getSettings().setAllowFileAccess(true); // 允许访问文件

View File

@@ -7,6 +7,7 @@ import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.IOException;
import java.io.PrintWriter;
/**
@@ -88,7 +89,11 @@ public class FileUtil {
duration= Long.parseLong(time);
} catch (Exception ex) {
} finally {
mmr.release();
try {
mmr.release();
} catch (IOException e) {
throw new RuntimeException(e);
}
}
return duration;
}

View File

@@ -250,7 +250,8 @@ public class NobleNoticeView extends FrameLayout {
@Override
public void onStep(int frame, double v) {
System.out.println("frame = " + frame);
if (frame == 20) {
System.out.println("scrollLayout.getMeasuredWidth() = " + scrollLayout.getMeasuredWidth());
if (frame == 21) {
setButtonPosition(roleType);
observable.observeOn(AndroidSchedulers.mainThread())
.subscribe(bitmap -> {