Fixing widgets enabled ag/9375162

Change-Id: I2e7e731dacf3c617fc2abe4c5289519856d0c2a3
This commit is contained in:
Sunny Goyal 2020-01-07 20:32:00 -08:00
parent aed008de90
commit 85cb1b65c2
1 changed files with 4 additions and 4 deletions

View File

@ -19,8 +19,10 @@ package com.android.launcher3.model;
import android.content.Context;
import android.os.UserHandle;
import com.android.launcher3.icons.ComponentWithLabel;
import androidx.annotation.Nullable;
import com.android.launcher3.LauncherAppState;
import com.android.launcher3.icons.ComponentWithLabel;
import com.android.launcher3.util.PackageUserKey;
import com.android.launcher3.widget.WidgetListRowEntry;
@ -29,8 +31,6 @@ import java.util.Collections;
import java.util.List;
import java.util.Set;
import androidx.annotation.Nullable;
/**
* 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 {
// 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<>();