summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2018-03-05 18:06:52 +0000
committerWinson Chung <winsonc@google.com>2018-03-05 18:06:52 +0000
commitf502e5faecbd460ad3b8258168c5812cbaa34c4e (patch)
treecd9c43e7d5ffb4f6ef5d59bcaaafcaf78de5c9f7 /tests
parentb29a5fa55ce3b84dd1829688db8522d5e68ffc44 (diff)
downloadandroid_packages_apps_Trebuchet-f502e5faecbd460ad3b8258168c5812cbaa34c4e.tar.gz
android_packages_apps_Trebuchet-f502e5faecbd460ad3b8258168c5812cbaa34c4e.tar.bz2
android_packages_apps_Trebuchet-f502e5faecbd460ad3b8258168c5812cbaa34c4e.zip
Revert "Adding support for hiding widgets from the widget tray and reconfiguring widgets"
This reverts commit b29a5fa55ce3b84dd1829688db8522d5e68ffc44. Reason for revert: Temporary revert for build. Change-Id: I58045ad1ce28d398a5216ba4fbbcdba1196942ec
Diffstat (limited to 'tests')
-rw-r--r--tests/AndroidManifest-common.xml11
-rw-r--r--tests/res/xml/appwidget_hidden.xml11
-rw-r--r--tests/res/xml/appwidget_with_config.xml1
-rw-r--r--tests/src/com/android/launcher3/testcomponent/AppWidgetHidden.java23
4 files changed, 0 insertions, 46 deletions
diff --git a/tests/AndroidManifest-common.xml b/tests/AndroidManifest-common.xml
index a54268af0..0a2914772 100644
--- a/tests/AndroidManifest-common.xml
+++ b/tests/AndroidManifest-common.xml
@@ -33,17 +33,6 @@
android:resource="@xml/appwidget_no_config" />
</receiver>
-
- <receiver
- android:name="com.android.launcher3.testcomponent.AppWdigetHidden"
- android:label="Hidden widget">
- <intent-filter>
- <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
- </intent-filter>
- <meta-data android:name="android.appwidget.provider"
- android:resource="@xml/appwidget_hidden" />
- </receiver>
-
<receiver
android:name="com.android.launcher3.testcomponent.AppWidgetWithConfig"
android:label="With Config">
diff --git a/tests/res/xml/appwidget_hidden.xml b/tests/res/xml/appwidget_hidden.xml
deleted file mode 100644
index 6f0e0066f..000000000
--- a/tests/res/xml/appwidget_hidden.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<appwidget-provider
- xmlns:android="http://schemas.android.com/apk/res/android"
- android:minWidth="180dp"
- android:minHeight="110dp"
- android:updatePeriodMillis="86400000"
- android:initialLayout="@layout/test_layout_appwidget_blue"
- android:resizeMode="horizontal|vertical"
- android:widgetFeatures="hide_from_picker"
- android:widgetCategory="home_screen">
-</appwidget-provider> \ No newline at end of file
diff --git a/tests/res/xml/appwidget_with_config.xml b/tests/res/xml/appwidget_with_config.xml
index 840368987..3e96c6f2f 100644
--- a/tests/res/xml/appwidget_with_config.xml
+++ b/tests/res/xml/appwidget_with_config.xml
@@ -7,6 +7,5 @@
android:initialLayout="@layout/test_layout_appwidget_blue"
android:configure="com.android.launcher3.testcomponent.WidgetConfigActivity"
android:resizeMode="horizontal|vertical"
- android:widgetFeatures="reconfigurable"
android:widgetCategory="home_screen">
</appwidget-provider> \ No newline at end of file
diff --git a/tests/src/com/android/launcher3/testcomponent/AppWidgetHidden.java b/tests/src/com/android/launcher3/testcomponent/AppWidgetHidden.java
deleted file mode 100644
index 83492bfd2..000000000
--- a/tests/src/com/android/launcher3/testcomponent/AppWidgetHidden.java
+++ /dev/null
@@ -1,23 +0,0 @@
-/*
- * Copyright (C) 2018 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not
- * use this file except in compliance with the License. You may obtain a copy of
- * the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations under
- * the License.
- */
-package com.android.launcher3.testcomponent;
-
-import android.appwidget.AppWidgetProvider;
-
-/**
- * A simple app widget without any configuration screen and is hidden in picker.
- */
-public class AppWidgetHidden extends AppWidgetProvider { }