Android6.0使用lanucher3的搜索時出現(xiàn)問題解決方法詳解
Android6.0 使用lanucher3的搜索時出現(xiàn)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?(this?is?a