When device is locked, only scale down the top task as a response to the user interaction. When user flings or lifts his finger, the task is dismissed to go to the lock screen LockScreenRecentsActivity is an empty activity which starts on top of lock screen and finishes immediately. This allows us to start a recents transition with just the top activity as the animation target. This target is then used for swipe up interaction Bug: 133167096 Change-Id: I466ed142ea33d626c78cb9cc5f6311bad26b8d98
32 lines
964 B
Java
32 lines
964 B
Java
/*
|
|
* Copyright (C) 2019 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.quickstep;
|
|
|
|
import android.app.Activity;
|
|
import android.os.Bundle;
|
|
|
|
/**
|
|
* Empty activity to start a recents transition
|
|
*/
|
|
public class LockScreenRecentsActivity extends Activity {
|
|
|
|
@Override
|
|
protected void onCreate(Bundle savedInstanceState) {
|
|
super.onCreate(savedInstanceState);
|
|
finish();
|
|
}
|
|
}
|