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

Commit 85cb1b65 authored by Sunny Goyal's avatar Sunny Goyal
Browse files

Fixing widgets enabled ag/9375162

Change-Id: I2e7e731dacf3c617fc2abe4c5289519856d0c2a3
parent aed008de
Loading
Loading
Loading
Loading
+4 −4
Original line number Original line Diff line number Diff line
@@ -19,8 +19,10 @@ package com.android.launcher3.model;
import android.content.Context;
import android.content.Context;
import android.os.UserHandle;
import android.os.UserHandle;


import com.android.launcher3.icons.ComponentWithLabel;
import androidx.annotation.Nullable;

import com.android.launcher3.LauncherAppState;
import com.android.launcher3.LauncherAppState;
import com.android.launcher3.icons.ComponentWithLabel;
import com.android.launcher3.util.PackageUserKey;
import com.android.launcher3.util.PackageUserKey;
import com.android.launcher3.widget.WidgetListRowEntry;
import com.android.launcher3.widget.WidgetListRowEntry;


@@ -29,8 +31,6 @@ import java.util.Collections;
import java.util.List;
import java.util.List;
import java.util.Set;
import java.util.Set;


import androidx.annotation.Nullable;

/**
/**
 * Widgets data model that is used by the adapters of the widget views and controllers.
 * Widgets data model that is used by the adapters of the widget views and controllers.
 *
 *
@@ -39,7 +39,7 @@ import androidx.annotation.Nullable;
public class WidgetsModel {
public class WidgetsModel {


    // True is the widget support is disabled.
    // True is the widget support is disabled.
    public static final boolean GO_DISABLE_WIDGETS = false;
    public static final boolean GO_DISABLE_WIDGETS = true;


    private static final ArrayList<WidgetListRowEntry> EMPTY_WIDGET_LIST = new ArrayList<>();
    private static final ArrayList<WidgetListRowEntry> EMPTY_WIDGET_LIST = new ArrayList<>();