Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 54336048 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

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

Merge "Disable smartspace transition on tablet." into tm-dev am: c648c3a7 am: 413ad84f am: 4edc5bf4

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18094468



Change-Id: If4366d367739acdd33b08b82ee3a220947cdf445
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 3c34da4a 4edc5bf4
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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
    }