summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHyunyoung Song <hyunyoungs@google.com>2016-07-21 12:47:28 -0700
committerHyunyoung Song <hyunyoungs@google.com>2016-07-21 12:47:28 -0700
commit1ce0e30451f28e6e5c42c068d520e16abeb257dd (patch)
treebaf2df27d3df6b70f073147c1cae0155c9497d20
parent4a44b6e59fc662568a92da36725e940e1dd844db (diff)
downloadandroid_packages_apps_Trebuchet-1ce0e30451f28e6e5c42c068d520e16abeb257dd.tar.gz
android_packages_apps_Trebuchet-1ce0e30451f28e6e5c42c068d520e16abeb257dd.tar.bz2
android_packages_apps_Trebuchet-1ce0e30451f28e6e5c42c068d520e16abeb257dd.zip
Fix NPE on clicking the all apps caret.
Change-Id: I2623e7470ffe711bce375699b9579803ded6c02f
-rw-r--r--src/com/android/launcher3/Launcher.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java
index f8b7c279c..7423e2004 100644
--- a/src/com/android/launcher3/Launcher.java
+++ b/src/com/android/launcher3/Launcher.java
@@ -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 */);