diff options
author | Jim Miller <jaggies@google.com> | 2012-09-17 21:02:25 -0700 |
---|---|---|
committer | Jim Miller <jaggies@google.com> | 2012-09-17 21:02:25 -0700 |
commit | f8f6217f962a6682548502b6cc4b10e2dc9a144f (patch) | |
tree | 48c5e974d92188c600dfc90e21e9cc8e379ffa18 /src | |
parent | 38305fb1777147cbcb86774c466e88434daff141 (diff) | |
download | packages_apps_settings-f8f6217f962a6682548502b6cc4b10e2dc9a144f.zip packages_apps_settings-f8f6217f962a6682548502b6cc4b10e2dc9a144f.tar.gz packages_apps_settings-f8f6217f962a6682548502b6cc4b10e2dc9a144f.tar.bz2 |
Add flag to allow testing launcher widgets in keyguard.
Change-Id: I10fc3f6557dba9261b898d7b123d1391c1afdf06
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/settings/AppWidgetPickActivity.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/com/android/settings/AppWidgetPickActivity.java b/src/com/android/settings/AppWidgetPickActivity.java index f573edf..f242dcf 100644 --- a/src/com/android/settings/AppWidgetPickActivity.java +++ b/src/com/android/settings/AppWidgetPickActivity.java @@ -24,6 +24,7 @@ import android.content.pm.PackageManager; import android.graphics.drawable.Drawable; import android.os.Bundle; import android.os.Parcelable; +import android.os.SystemProperties; import android.util.Log; import java.text.Collator; @@ -54,7 +55,11 @@ public class AppWidgetPickActivity extends ActivityPicker { * activity is binding. */ private int mAppWidgetId; - + + // Enable testing launcher widgets in keyguard. For testing purposes only. + private final boolean mIgnoreFilter = false || SystemProperties.getBoolean( + "ro.keyguard_ignore_filter", false); + @Override public void onCreate(Bundle icicle) { mPackageManager = getPackageManager(); @@ -257,7 +262,7 @@ public class AppWidgetPickActivity extends ActivityPicker { */ void putInstalledAppWidgets(List<PickAdapter.Item> items, int categoryFilter, int featuresFilter) { List<AppWidgetProviderInfo> installed = mAppWidgetManager.getInstalledProviders(); - putAppWidgetItems(installed, null, items, categoryFilter, featuresFilter, false); + putAppWidgetItems(installed, null, items, categoryFilter, featuresFilter, mIgnoreFilter ); } /** |