Apply sliding transition for lock screen
The flow of changing lock screen is combined with Settings and SUW pages together where their implementation are different, which causes the page-to-page transition inconsistent. Sub-setting pages will apply shared axis transition while SUW pages will keep the slide in/out transition. In order to make these 2 types of page work together, we intent to use slide in/out transition in the lock screen. Fix: 174434707 Test: visual verified Change-Id: I827211e45bcbfdfc558c9d95e6814e62b339b4aa
This commit is contained in:
@@ -34,7 +34,9 @@ import androidx.fragment.app.Fragment;
|
||||
import com.android.internal.widget.LockPatternUtils;
|
||||
import com.android.settings.SetupWizardUtils;
|
||||
import com.android.settings.Utils;
|
||||
import com.android.settings.core.SettingsBaseActivity;
|
||||
import com.android.settings.core.SubSettingLauncher;
|
||||
import com.android.settingslib.transition.SettingsTransitionHelper;
|
||||
|
||||
import com.google.android.setupcompat.util.WizardManagerHelper;
|
||||
|
||||
@@ -359,6 +361,8 @@ public final class ChooseLockSettingsHelper {
|
||||
requestGatekeeperPasswordHandle);
|
||||
|
||||
intent.setClassName(SETTINGS_PACKAGE_NAME, activityClass.getName());
|
||||
intent.putExtra(SettingsBaseActivity.EXTRA_PAGE_TRANSITION_TYPE,
|
||||
SettingsTransitionHelper.TransitionType.TRANSITION_SLIDE);
|
||||
|
||||
Intent inIntent = mFragment != null ? mFragment.getActivity().getIntent() :
|
||||
mActivity.getIntent();
|
||||
|
Reference in New Issue
Block a user