mikelhm

Results 20 comments of mikelhm

same here for me android 12 this helps to me: DownloadTask.Builder(url, file).setConnectionCount(1) https://github.com/lingochamp/okdownload/wiki/Special-Case

> Tips: English description is below this comment! > > 一、问题 > > 在使用glide的过程中发现默认设置的RGB_565没有生效,而此配置可以使图片内存减少一半,分析源码并尝试了修复方案,只是心里还有些疑问,是我其他配置有问题还是这本身是个bug? > > 二、分析glide内创建图片核心流程 > > 1、业务调用 > > Glide.with(MainActivity.this).load("xxxx").format(DecodeFormat.PREFER_RGB_565).into(imageView); > >  3、创建图片核心流程 glide创建bitmap主要经过6个流程: 业务调用接口,传入参数 读取原始图片信息:getDimensions方法获取原始图片信息,如图片尺寸、类型等; 计算目标图片尺寸、解码配置:calculateScaling计算合适的目标图片尺寸,calculateConfig计算合适的目标图片解码配置;...

> @ > > > > Tips: English description is below this comment! > > > 一、问题 > > > 在使用glide的过程中发现默认设置的RGB_565没有生效,而此配置可以使图片内存减少一半,分析源码并尝试了修复方案,只是心里还有些疑问,是我其他配置有问题还是这本身是个bug? > > > 二、分析glide内创建图片核心流程 > > > 1、业务调用 >...

private static void setInBitmap( BitmapFactory.Options options, BitmapPool bitmapPool, int width, int height) { @Nullable Bitmap.Config expectedConfig = null; // Avoid short circuiting, it appears to break on some devices. if...

> > private static void setInBitmap( BitmapFactory.Options options, BitmapPool bitmapPool, int width, int height) { @nullable Bitmap.Config expectedConfig = null; // Avoid short circuiting, it appears to break on some...

> this one?? it seems there are different platform file such as yt-dlp_macos, yt-dlp_linux...... so which one is you download.

i also meet the same problem. here is my stack, but i use system webview. 1 J.N.Mhc_M_H$(Native method) 2 org.chromium.components.viz.service.frame_sinks.ExternalBeginFrameSourceAndroid.doFrame(chromium-TrichromeWebViewGoogle.aab-stable-579016631:60) 3 android.view.Choreographer$CallbackRecord.run(Choreographer.java:994) 4 android.view.Choreographer.doCallbacks(Choreographer.java:794) 5 android.view.Choreographer.doFrame(Choreographer.java:725) 6 android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:981) 7 android.os.Handler.handleCallback(Handler.java:883)...

I also face the same issue when upgrade firebase to 1.9.20 sub thread: com.google.firebase.perf.config.ConfigResolver.getInstance (ConfigResolver.java:86) com.google.firebase.perf.FirebasePerfEarly. (FirebasePerfEarly.java:41) com.google.firebase.perf.FirebasePerfRegistrar.lambda$getComponents$0 (FirebasePerfRegistrar.java:75) com.google.firebase.tracing.ComponentMonitor.lambda$processRegistrar$0 (ComponentMonitor.java:38) com.google.firebase.components.ComponentRuntime.lambda$discoverComponents$0 (ComponentRuntime.java:160) com.google.firebase.components.Lazy.get (Lazy.java:53) com.google.firebase.components.ComponentRuntime.doInitializeEagerComponents (ComponentRuntime.java:322) com.google.firebase.components.ComponentRuntime.initializeEagerComponents (ComponentRuntime.java:312) com.google.firebase.FirebaseApp.initializeAllApis...

> Can you check if you are able to see/reproduce this issue on the latest version of the Firebase performance? This part of the code where ConfigResolver is initialized is...

还有个疑问:即使是反射startYourEngines,webiew 引擎最终也是切回Ui 线程进行 所以这个方案 其实也起不到预热 webview 引擎的作用?