Skip to content
Snippets Groups Projects
Commit fafbf2e1 authored by Aaron Kling's avatar Aaron Kling Committed by Adithya R
Browse files

Launcher3: 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 93f44a4

Change-Id: Ida3f5e056522871dc35ce48a5488ad28b6b0c2cc
Signed-off-by: default avatarAdithya R <gh0strider.2k18.reborn@gmail.com>
parent bb3407f1
No related branches found
No related tags found
No related merge requests found
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment