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

Unverified Commit 93f44a4c authored by Sebastiano Barezzi's avatar Sebastiano Barezzi
Browse files

Trebuchet: Fix TaskbarModelCallbacksFactory 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

Change-Id: Ic412a2a3efbe1d3f8b9c02a58635c2821eabd54d
parent c3d2e928
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 [TaskbarModelCallbacks] instances. */
open class TaskbarModelCallbacksFactory : ResourceBasedOverride {
// We must have constructors with and without context for Overrides.getObject
open class TaskbarModelCallbacksFactory @JvmOverloads constructor(
    context: Context? = null
) : ResourceBasedOverride {

    open fun create(
        activityContext: TaskbarActivityContext,