Merge "Disable smartspace transition on tablet." into tm-dev

This commit is contained in:
TreeHugger Robot
2022-04-30 03:35:58 +00:00
committed by Android (Google) Code Review

View File

@@ -38,6 +38,7 @@ import com.android.systemui.dagger.SysUISingleton
import com.android.systemui.flags.FeatureFlags
import com.android.systemui.flags.Flags
import com.android.systemui.plugins.BcSmartspaceDataPlugin
import com.android.systemui.shared.recents.utilities.Utilities
import com.android.systemui.shared.system.ActivityManagerWrapper
import com.android.systemui.shared.system.QuickStepContract
import com.android.systemui.shared.system.smartspace.ILauncherUnlockAnimationController
@@ -819,6 +820,12 @@ class KeyguardUnlockAnimationController @Inject constructor(
return false
}
// We don't do the shared element on tablets because they're large and the smartspace has to
// fly across large distances, which is distracting.
if (Utilities.isTablet(context)) {
return false
}
return true
}