summaryrefslogtreecommitdiff
path: root/core/java
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2018-01-13 14:27:50 -0800
committerWinson Chung <winsonc@google.com>2018-01-16 11:39:08 -0800
commit2a35e6db849bd7c844bb87e7ef3f43b24bed4043 (patch)
tree3b70e8d496d160d38a71e743238041406a9e547c /core/java
parent49c3ef9ead0b9b877f14dac2446bc498173b6dcb (diff)
Fix a couple PIP related issues.
- Only show settings button when in the full PIP menu (71709327) - Fix issue with PIP not moving with keyboard due to new callback order (71584422) - Make home button consistent with recents button when in an activity over the lockscreen (64137485). When you tap home, it will now prompt you to unlock before going home (and auto-entering PIP if the app supports it) Bug: 71709327 Bug: 71584422 Bug: 64137485 Test: Manual, ensure that pip shifts with keyboard and verify that it launches into PIP from show-over-lockscreen activity Change-Id: I9122b7e20a5bfe82b32c8b576bd4fa11b5659c31
Diffstat (limited to 'core/java')
-rw-r--r--core/java/com/android/internal/policy/KeyguardDismissCallback.java41
1 files changed, 41 insertions, 0 deletions
diff --git a/core/java/com/android/internal/policy/KeyguardDismissCallback.java b/core/java/com/android/internal/policy/KeyguardDismissCallback.java
new file mode 100644
index 000000000000..38337ec6f274
--- /dev/null
+++ b/core/java/com/android/internal/policy/KeyguardDismissCallback.java
@@ -0,0 +1,41 @@
+/*
+ * 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.internal.policy;
+
+import android.os.RemoteException;
+import com.android.internal.policy.IKeyguardDismissCallback;
+
+/**
+ * @hide
+ */
+public class KeyguardDismissCallback extends IKeyguardDismissCallback.Stub {
+
+ @Override
+ public void onDismissError() throws RemoteException {
+ // To be overidden
+ }
+
+ @Override
+ public void onDismissSucceeded() throws RemoteException {
+ // To be overidden
+ }
+
+ @Override
+ public void onDismissCancelled() throws RemoteException {
+ // To be overidden
+ }
+}