diff options
author | nchalko <nchalko@google.com> | 2018-12-26 09:57:39 -0800 |
---|---|---|
committer | Nick Chalko <nchalko@google.com> | 2019-01-16 20:40:38 +0000 |
commit | 29fb128f3434d80989eaace9e6e99ed3763a0742 (patch) | |
tree | 9933b20923f5e0955d8fd558ea1d29303f85f638 /common/src/com/android/tv/common/feature/GServiceFeature.java | |
parent | e462b7eab22efd7a9fa1273076fd94217fe67b6a (diff) | |
download | TV-29fb128f3434d80989eaace9e6e99ed3763a0742.tar.gz |
Remove GservicesFeature
The only use was to always unhide live channels on a Nexus Player with
a SDK > O
PiperOrigin-RevId: 226928216
Change-Id: Ifa949934c64b1ba17c23450a48fd471973cd60b4
Diffstat (limited to 'common/src/com/android/tv/common/feature/GServiceFeature.java')
-rw-r--r-- | common/src/com/android/tv/common/feature/GServiceFeature.java | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/common/src/com/android/tv/common/feature/GServiceFeature.java b/common/src/com/android/tv/common/feature/GServiceFeature.java deleted file mode 100644 index 1d7d1156..00000000 --- a/common/src/com/android/tv/common/feature/GServiceFeature.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * 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.tv.common.feature; - -import android.content.Context; - -/** A feature controlled by a GServices flag. */ -public class GServiceFeature implements Feature { - private static final String LIVECHANNELS_PREFIX = "livechannels:"; - private final String mKey; - private final boolean mDefaultValue; - - public GServiceFeature(String key, boolean defaultValue) { - mKey = LIVECHANNELS_PREFIX + key; - mDefaultValue = defaultValue; - } - - @Override - public boolean isEnabled(Context context) { - - // GServices is not available outside of Google. - return mDefaultValue; - } - - @Override - public String toString() { - return "GService[hash=" + mKey.hashCode() + "]"; - } -} |