Android launcher crash

Android6.0使用launcher3搜索时出现crash如何解决?

2019-01-08
7次浏览

Android6.0 使用lanucher3的搜索时出现crash,解决方法如下:

diff?--git?a/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java?b/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
index?e550902..aba6363?100755
---?a/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
+++?b/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
@@?-2872,6?+2872,8?@@?public?class?Launcher?extends?Activity
?????}
?
?????private?boolean?startActivity(View?v,?Intent?intent,?Object?tag)?{
+???????????if(intent?==?null)
+???????????????????????return?false;
?????????intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
?????????try?{
?????????????//?Only?launch?using?the?new?animation?if?the?shortcut?has?not?opted?out

我要点评

本站介绍 合作联络 欢迎投稿 隐私声明 广告业务 网站地图 联系我们 诚聘英才

ICP许可证号:京ICP证070360号 21IC电子网 2000-2018 版权所有

京公网安备 11010802024347号