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

Commit 8b88177f authored by Schneider Victor-Tulias's avatar Schneider Victor-Tulias
Browse files

Fix launcher crash on configuration changed

Flag: com.android.launcher3.enable_fallback_overview_in_window
Fixes: 375398042
Test: rotated device
Change-Id: Ib57a7c43a664b5ba73284b9265c04cba16e4d4d2
parent d4a04f9d
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@ package com.android.quickstep.fallback.window

import android.animation.AnimatorSet
import android.app.ActivityOptions
import android.content.ComponentName
import android.content.Context
import android.content.LocusId
import android.os.Bundle
@@ -266,6 +267,10 @@ class RecentsWindowManager(context: Context) :
        }
    }

    override fun getComponentName(): ComponentName {
        return ComponentName(this, RecentsWindowManager::class.java)
    }

    override fun canStartHomeSafely(): Boolean {
        val overviewCommandHelper = tisBindHelper.overviewCommandHelper
        return overviewCommandHelper == null || overviewCommandHelper.canStartHomeSafely()