summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/testing
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2017-08-16 04:59:08 -0700
committerSunny Goyal <sunnygoyal@google.com>2017-09-13 14:04:35 -0700
commit952e63d0065d79d2bd9557ed7f28e96adb39ca9a (patch)
tree3f07803d9731a9c56ee7c0d707385b0272966e6b /src/com/android/launcher3/testing
parentbe213def874f580a58b2ee4a94ba503a6d7e3f15 (diff)
downloadandroid_packages_apps_Trebuchet-952e63d0065d79d2bd9557ed7f28e96adb39ca9a.tar.gz
android_packages_apps_Trebuchet-952e63d0065d79d2bd9557ed7f28e96adb39ca9a.tar.bz2
android_packages_apps_Trebuchet-952e63d0065d79d2bd9557ed7f28e96adb39ca9a.zip
Fixing custom widgets support:
> Moving the definitions to xml so that it is easier to override in derivative projects > Fixing verious bind and save logic for custom widgets > Adding feature flag to easily disable custom widgets Change-Id: I0e278bc7dd415713029364060ef10842da990be9
Diffstat (limited to 'src/com/android/launcher3/testing')
-rw-r--r--src/com/android/launcher3/testing/DummyWidget.java53
1 files changed, 0 insertions, 53 deletions
diff --git a/src/com/android/launcher3/testing/DummyWidget.java b/src/com/android/launcher3/testing/DummyWidget.java
deleted file mode 100644
index df887ac1f..000000000
--- a/src/com/android/launcher3/testing/DummyWidget.java
+++ /dev/null
@@ -1,53 +0,0 @@
-package com.android.launcher3.testing;
-
-import android.appwidget.AppWidgetProviderInfo;
-
-import com.android.launcher3.CustomAppWidget;
-import com.android.launcher3.R;
-
-public class DummyWidget implements CustomAppWidget {
- @Override
- public String getLabel() {
- return "Dumb Launcher Widget";
- }
-
- @Override
- public int getPreviewImage() {
- return 0;
- }
-
- @Override
- public int getIcon() {
- return 0;
- }
-
- @Override
- public int getWidgetLayout() {
- return R.layout.zzz_dummy_widget;
- }
-
- @Override
- public int getSpanX() {
- return 2;
- }
-
- @Override
- public int getSpanY() {
- return 2;
- }
-
- @Override
- public int getMinSpanX() {
- return 1;
- }
-
- @Override
- public int getMinSpanY() {
- return 1;
- }
-
- @Override
- public int getResizeMode() {
- return AppWidgetProviderInfo.RESIZE_BOTH;
- }
-}