summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/util/ManagedProfileHeuristic.java
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2015-05-27 10:05:28 -0700
committerSunny Goyal <sunnygoyal@google.com>2015-06-19 19:53:34 +0000
commit4d113a5ff44ff1a7f19263bde21581fbf9a54212 (patch)
treed80c55262936ed1c4ebd265fcf72adfad095a859 /src/com/android/launcher3/util/ManagedProfileHeuristic.java
parente91a14c6986660253996018982d500a728585199 (diff)
downloadandroid_packages_apps_Trebuchet-4d113a5ff44ff1a7f19263bde21581fbf9a54212.tar.gz
android_packages_apps_Trebuchet-4d113a5ff44ff1a7f19263bde21581fbf9a54212.tar.bz2
android_packages_apps_Trebuchet-4d113a5ff44ff1a7f19263bde21581fbf9a54212.zip
Using material style overscroll effect for workspace and folders
Bug: 21335369 Change-Id: I53cc6edfa87334b9326f1dedd90c3e2222beade5
Diffstat (limited to 'src/com/android/launcher3/util/ManagedProfileHeuristic.java')
-rw-r--r--src/com/android/launcher3/util/ManagedProfileHeuristic.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/com/android/launcher3/util/ManagedProfileHeuristic.java b/src/com/android/launcher3/util/ManagedProfileHeuristic.java
index 94dc47f09..b37f44719 100644
--- a/src/com/android/launcher3/util/ManagedProfileHeuristic.java
+++ b/src/com/android/launcher3/util/ManagedProfileHeuristic.java
@@ -1,10 +1,28 @@
+/*
+ * Copyright (C) 2015 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
package com.android.launcher3.util;
+import android.annotation.TargetApi;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.pm.PackageManager.NameNotFoundException;
+import android.os.Build;
import android.util.Log;
import com.android.launcher3.FolderInfo;
@@ -32,6 +50,7 @@ import java.util.Set;
* Handles addition of app shortcuts for managed profiles.
* Methods of class should only be called on {@link LauncherModel#sWorkerThread}.
*/
+@TargetApi(Build.VERSION_CODES.LOLLIPOP)
public class ManagedProfileHeuristic {
private static final String TAG = "ManagedProfileHeuristic";