summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/Launcher.java
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2016-11-02 10:31:24 -0700
committerSunny Goyal <sunnygoyal@google.com>2016-11-02 10:31:41 -0700
commitf5e3744637db1598c389e62450627b2548f8f517 (patch)
tree66078094384c6d2422c19253304f8e8de2e93477 /src/com/android/launcher3/Launcher.java
parentcc42c5bd1073f4b4f45ea29a1b01563601729022 (diff)
downloadandroid_packages_apps_Trebuchet-f5e3744637db1598c389e62450627b2548f8f517.tar.gz
android_packages_apps_Trebuchet-f5e3744637db1598c389e62450627b2548f8f517.tar.bz2
android_packages_apps_Trebuchet-f5e3744637db1598c389e62450627b2548f8f517.zip
Updating version check method names
Change-Id: If98851677545a9bbb9de308c23ff5c155a61a8bf
Diffstat (limited to 'src/com/android/launcher3/Launcher.java')
-rw-r--r--src/com/android/launcher3/Launcher.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java
index c7fac87e3..f372d9518 100644
--- a/src/com/android/launcher3/Launcher.java
+++ b/src/com/android/launcher3/Launcher.java
@@ -365,7 +365,7 @@ public class Launcher extends Activity
? app.getInvariantDeviceProfile().landscapeProfile
: app.getInvariantDeviceProfile().portraitProfile;
- if (Utilities.isNycOrAbove() && isInMultiWindowMode()) {
+ if (Utilities.ATLEAST_NOUGAT && isInMultiWindowMode()) {
Display display = getWindowManager().getDefaultDisplay();
Point mwSize = new Point();
display.getSize(mwSize);
@@ -466,7 +466,7 @@ public class Launcher extends Activity
private void loadExtractedColorsAndColorItems() {
// TODO: do this in pre-N as well, once the extraction part is complete.
- if (Utilities.isNycOrAbove()) {
+ if (Utilities.ATLEAST_NOUGAT) {
mExtractedColors.load(this);
mHotseat.updateColor(mExtractedColors, !mPaused);
mWorkspace.getPageIndicator().updateColor(mExtractedColors);
@@ -913,7 +913,7 @@ public class Launcher extends Activity
mLauncherCallbacks.onStop();
}
- if (Utilities.isNycMR1OrAbove()) {
+ if (Utilities.ATLEAST_NOUGAT_MR1) {
mAppWidgetHost.stopListening();
}
}
@@ -927,7 +927,7 @@ public class Launcher extends Activity
mLauncherCallbacks.onStart();
}
- if (Utilities.isNycMR1OrAbove()) {
+ if (Utilities.ATLEAST_NOUGAT_MR1) {
mAppWidgetHost.startListening();
}
}