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

Commit 9191bd04 authored by Aaron Kling's avatar Aaron Kling
Browse files

Trebuchet: Fix TaskbarViewCallbacksFactory instantiation

Overrides.getObject() calls the constructor with context if the overlay
has a valid class, if empty it uses the constructor without args.
Considering this class is part of quickstep, we should support both
cases, since this is the fallback class anyway

Based on 93f44a4c

Change-Id: Ida3f5e056522871dc35ce48a5488ad28b6b0c2cc
parent 6caab89b
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -22,7 +22,10 @@ import com.android.launcher3.util.ResourceBasedOverride
import com.android.launcher3.util.ResourceBasedOverride.Overrides

/** Creates [TaskbarViewCallbacks] instances. */
open class TaskbarViewCallbacksFactory : ResourceBasedOverride {
// We must have constructors with and without context for Overrides.getObject
open class TaskbarViewCallbacksFactory @JvmOverloads constructor(
    context: Context? = null
) : ResourceBasedOverride {

    open fun create(
        activity: TaskbarActivityContext,