blob: 559b2c960c7d6854f483abed1f2388918057c46e [file] [log] [blame]
Daisuke Miyakawa7537f842011-05-31 15:47:25 -07001/*
2 * Copyright (C) 2011 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package com.android.ex.chips;
18
Daisuke Miyakawa7537f842011-05-31 15:47:25 -070019import android.os.Build;
Daisuke Miyakawa7537f842011-05-31 15:47:25 -070020
21public class ChipsUtil {
22
23 /**
24 * @return true when the caller can use Chips UI in its environment.
25 */
26 public static boolean supportsChipsUi() {
Mindy Pereiraed4fd2c2011-09-14 18:23:12 -070027 return Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH;
Daisuke Miyakawa7537f842011-05-31 15:47:25 -070028 }
Daisuke Miyakawa7537f842011-05-31 15:47:25 -070029}