OSDN Git Service

Fix NPE on clicking the all apps caret.
authorHyunyoung Song <hyunyoungs@google.com>
Thu, 21 Jul 2016 19:47:28 +0000 (12:47 -0700)
committerHyunyoung Song <hyunyoungs@google.com>
Thu, 21 Jul 2016 19:47:28 +0000 (12:47 -0700)
Change-Id: I2623e7470ffe711bce375699b9579803ded6c02f

src/com/android/launcher3/Launcher.java

index f8b7c27..7423e20 100644 (file)
@@ -2591,7 +2591,7 @@ public class Launcher extends Activity
     protected void onClickAllAppsButton(View v) {
         if (LOGD) Log.d(TAG, "onClickAllAppsButton");
         if (!isAppsViewVisible()) {
-            mUserEventDispatcher.logActionOnControl(LauncherLogProto.Action.TAP,
+            getUserEventDispatcher().logActionOnControl(LauncherLogProto.Action.TAP,
                     LauncherLogProto.ALL_APPS_BUTTON);
             showAppsView(true /* animated */, false /* resetListToTop */,
                     true /* updatePredictedApps */, false /* focusSearchBar */);
@@ -2601,7 +2601,7 @@ public class Launcher extends Activity
     protected void onLongClickAllAppsButton(View v) {
         if (LOGD) Log.d(TAG, "onLongClickAllAppsButton");
         if (!isAppsViewVisible()) {
-            mUserEventDispatcher.logActionOnControl(LauncherLogProto.Action.LONGPRESS,
+            getUserEventDispatcher().logActionOnControl(LauncherLogProto.Action.LONGPRESS,
                     LauncherLogProto.ALL_APPS_BUTTON);
             showAppsView(true /* animated */, false /* resetListToTop */,
                     true /* updatePredictedApps */, true /* focusSearchBar */);