File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
demo/src/main/java/me/jessyan/autosize/demo Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 2020import android .util .DisplayMetrics ;
2121
2222import cat .ereza .customactivityoncrash .activity .DefaultErrorActivity ;
23+ import me .jessyan .autosize .AutoSize ;
2324import me .jessyan .autosize .AutoSizeConfig ;
2425import me .jessyan .autosize .external .ExternalAdaptInfo ;
2526import me .jessyan .autosize .external .ExternalAdaptManager ;
@@ -71,6 +72,9 @@ public void onCreate() {
7172 //设置屏幕适配逻辑策略类, 一般不用设置, 使用框架默认的就好
7273// .setAutoAdaptStrategy(new AutoAdaptStrategy())
7374 ;
75+ //当 App 中出现多进程, 并且您需要适配所有的进程, 就需要在 App 初始化时调用 initCompatMultiProcess()
76+ //在 Demo 中跳转的三方库中的 DefaultErrorActivity 就是在另外一个进程中, 所以要想适配这个 Activity 就需要调用 initCompatMultiProcess()
77+ AutoSize .initCompatMultiProcess (this );
7478 customAdaptForExternal ();
7579 }
7680
You can’t perform that action at this time.
0 commit comments