Since the deep link mechanism uses a trampoline activity to redirect the target activity, and the targeting activity is launched in a separate task, there will be two transitions played, where one is the splash screen with the trampoline acitvity and another one is the task transition. This makes the UX weird. To avoid this, this CL tries to make the targeting activity launch in the same task as the trampoline acitivity by removing the taskAffinity, so there won't be a task transition. Fix: 215275940 Test: Create a settings shortcut on the home screen and launch it. Change-Id: I7621ab9f1132acbf619495801a3b985c5c3b1b5d
25 lines
872 B
Java
25 lines
872 B
Java
/*
|
|
* Copyright (C) 2021 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.settings.homepage;
|
|
|
|
/**
|
|
* Activity used for search results and slices to launch a deep link page without the cross-app
|
|
* transition animation
|
|
*/
|
|
public class DeepLinkHomepageActivityInternal extends SettingsHomepageActivity {
|
|
}
|