diff options
author | nchalko <nchalko@google.com> | 2018-02-07 06:19:28 -0800 |
---|---|---|
committer | Nick Chalko <nchalko@google.com> | 2018-02-07 06:39:34 -0800 |
commit | 565f1c73b427ffa1572cbf9cc20677da0f12caee (patch) | |
tree | c5a203b287a54d6fb56745db350cd010fd22dda6 /src/com/android | |
parent | 546d927204119817644a3f2fbe54cb0b364ece1c (diff) | |
download | TV-565f1c73b427ffa1572cbf9cc20677da0f12caee.tar.gz |
Restore the name of com.google.android.tv.receiver.GlobalKeyReceiver
PiperOrigin-RevId: 184829090
Change-Id: Iea6f6cdd953d218ecfaee1d9e8393710ecee7ec2
Diffstat (limited to 'src/com/android')
-rw-r--r-- | src/com/android/tv/livetv/receiver/GlobalKeyReceiver.java | 27 | ||||
-rw-r--r-- | src/com/android/tv/receiver/AbstractGlobalKeyReceiver.java (renamed from src/com/android/tv/receiver/GlobalKeyReceiver.java) | 4 |
2 files changed, 29 insertions, 2 deletions
diff --git a/src/com/android/tv/livetv/receiver/GlobalKeyReceiver.java b/src/com/android/tv/livetv/receiver/GlobalKeyReceiver.java new file mode 100644 index 00000000..80ea72f4 --- /dev/null +++ b/src/com/android/tv/livetv/receiver/GlobalKeyReceiver.java @@ -0,0 +1,27 @@ +/* + * Copyright (C) 2018 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.livetv.receiver; + +import com.android.tv.receiver.AbstractGlobalKeyReceiver; + +/** + * Global Key Receiver for LiveTv. + * + * <p>This is an exported receiver and the name can not change. + * Partners that modify LiveTv source should rename this class. + */ +public final class GlobalKeyReceiver extends AbstractGlobalKeyReceiver {} diff --git a/src/com/android/tv/receiver/GlobalKeyReceiver.java b/src/com/android/tv/receiver/AbstractGlobalKeyReceiver.java index 0133d8ee..80d47e0e 100644 --- a/src/com/android/tv/receiver/GlobalKeyReceiver.java +++ b/src/com/android/tv/receiver/AbstractGlobalKeyReceiver.java @@ -28,9 +28,9 @@ import com.android.tv.TvApplication; import com.android.tv.TvSingletons; /** Handles global keys. */ -public class GlobalKeyReceiver extends BroadcastReceiver { +public abstract class AbstractGlobalKeyReceiver extends BroadcastReceiver { private static final boolean DEBUG = false; - private static final String TAG = "GlobalKeyReceiver"; + private static final String TAG = "AbstractGlobalKeyReceiver"; private static final String ACTION_GLOBAL_BUTTON = "android.intent.action.GLOBAL_BUTTON"; // Settings.Secure.USER_SETUP_COMPLETE is hidden. |