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
This commit is contained in:
Winson Chung
2018-01-13 14:27:50 -08:00
parent 49c3ef9ead
commit 2a35e6db84
5 changed files with 74 additions and 34 deletions

View File

@@ -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
}
}