summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Cohen <adamcohen@google.com>2017-09-29 23:43:51 (GMT)
committerAdam Cohen <adamcohen@google.com>2017-10-02 20:49:30 (GMT)
commit3993348043a950c7decc5c151b8e8165750f0f3c (patch)
tree71bc2b7af27cec9b7b271a90897f67bcecc87942
parent230cf17fe6de48f1720724a272c653dcfc05a056 (diff)
downloadandroid_packages_apps_Trebuchet-3993348043a950c7decc5c151b8e8165750f0f3c.zip
android_packages_apps_Trebuchet-3993348043a950c7decc5c151b8e8165750f0f3c.tar.gz
android_packages_apps_Trebuchet-3993348043a950c7decc5c151b8e8165750f0f3c.tar.bz2
Remove discovery bounce for demo users
Bug 67116550 Change-Id: I8a27685f91e201072c0669c102077affe550fab6
-rw-r--r--src/com/android/launcher3/Launcher.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java
index 522e96a..32af059 100644
--- a/src/com/android/launcher3/Launcher.java
+++ b/src/com/android/launcher3/Launcher.java
@@ -91,6 +91,7 @@ import com.android.launcher3.anim.AnimationLayerSet;
import com.android.launcher3.compat.AppWidgetManagerCompat;
import com.android.launcher3.compat.LauncherAppsCompat;
import com.android.launcher3.compat.LauncherAppsCompatVO;
+import com.android.launcher3.compat.UserManagerCompat;
import com.android.launcher3.config.FeatureFlags;
import com.android.launcher3.dragndrop.DragController;
import com.android.launcher3.dragndrop.DragLayer;
@@ -137,6 +138,7 @@ import com.android.launcher3.widget.WidgetAddFlowHandler;
import com.android.launcher3.widget.WidgetHostViewLoader;
import com.android.launcher3.widget.WidgetsContainerView;
+
import java.io.FileDescriptor;
import java.io.PrintWriter;
import java.util.ArrayList;
@@ -3893,7 +3895,8 @@ public class Launcher extends BaseActivity
}
private boolean shouldShowDiscoveryBounce() {
- return mState == State.WORKSPACE && !mSharedPrefs.getBoolean(APPS_VIEW_SHOWN, false);
+ UserManagerCompat um = UserManagerCompat.getInstance(this);
+ return mState == State.WORKSPACE && !mSharedPrefs.getBoolean(APPS_VIEW_SHOWN, false) && !um.isDemoUser();
}
protected void moveWorkspaceToDefaultScreen() {