Merge "Make print support lib support API24." into nyc-dev
am: 397f978e94
* commit '397f978e94d10beec504e6fdc0cabd98516ea4dc':
Make print support lib support API24.
Change-Id: If7148a3060496253c68a7f9eed0f219c54c9491d
diff --git a/v4/java/android/support/v4/print/PrintHelper.java b/v4/java/android/support/v4/print/PrintHelper.java
index b9e5b14..88d5387 100644
--- a/v4/java/android/support/v4/print/PrintHelper.java
+++ b/v4/java/android/support/v4/print/PrintHelper.java
@@ -268,7 +268,7 @@
*/
public PrintHelper(Context context) {
if (systemSupportsPrint()) {
- if (Build.VERSION.CODENAME.equals("N") ) {
+ if (Build.VERSION.SDK_INT >= 24) {
mImpl = new PrintHelperApi24Impl(context);
} else if (Build.VERSION.SDK_INT >= 23) {
mImpl = new PrintHelperApi23Impl(context);