Add activity for android.settings.WEBVIEW_SETTINGS
b/32307358
Test: adb shell am start -a android.settings.WEBVIEW_SETTINGS
Change-Id: I6fffef7791976d0a696ea372f1d884f5e4d43f64
(cherry picked from commit 956cbe0a2e22c4118dcd4e4dba4601a706e1286b)
diff --git a/Settings/AndroidManifest.xml b/Settings/AndroidManifest.xml
index 92240e7..882b561 100644
--- a/Settings/AndroidManifest.xml
+++ b/Settings/AndroidManifest.xml
@@ -559,6 +559,20 @@
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
+
+ <!-- Dummy activity for CTS
+ TODO: implement something useful -->
+ <activity android:name=".system.WebViewImplementation"
+ android:exported="true"
+ android:excludeFromRecents="true"
+ android:theme="@android:style/Theme.NoDisplay">
+ <intent-filter>
+ <action android:name="android.settings.WEBVIEW_SETTINGS" />
+ <category android:name="android.intent.category.DEFAULT" />
+ </intent-filter>
+ <meta-data android:name="com.android.settings.PRIMARY_PROFILE_CONTROLLED"
+ android:value="true" />
+ </activity>
</application>
</manifest>
diff --git a/Settings/src/com/android/tv/settings/system/WebViewImplementation.java b/Settings/src/com/android/tv/settings/system/WebViewImplementation.java
new file mode 100644
index 0000000..8853b41
--- /dev/null
+++ b/Settings/src/com/android/tv/settings/system/WebViewImplementation.java
@@ -0,0 +1,30 @@
+/*
+ * Copyright (C) 2016 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.tv.settings.system;
+
+import android.annotation.Nullable;
+import android.app.Activity;
+import android.os.Bundle;
+
+// TODO: implement a webview choice screen here. See WebViewImplementation in mobile Settings
+public class WebViewImplementation extends Activity {
+ @Override
+ protected void onCreate(@Nullable Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ finish();
+ }
+}