summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Mantler <nicoya@google.com>2016-11-10 15:11:08 -0800
committergitbuildkicker <android-build@google.com>2016-11-18 18:47:22 -0800
commit7ef9b3a9572db70fec8aac117362c7bc48c35f45 (patch)
tree278ec95def57a402952c0a6031e9999c9ef244ae
parent62acc44bb726c733058df2e300819004a570b4c3 (diff)
downloadTvSettings-nougat-mr1-release.tar.gz
b/32307358 Test: adb shell am start -a .. -d .. Change-Id: I89ccacd7cb2b4433c95b4aa1b4f16eea03ff9675 (cherry picked from commit 92adc442b0efc42691a0be4c9fb9229edb5b0b30)
-rw-r--r--Settings/AndroidManifest.xml26
-rw-r--r--Settings/src/com/android/tv/settings/EmptyStubActivity.java (renamed from Settings/src/com/android/tv/settings/system/WebViewImplementation.java)5
2 files changed, 23 insertions, 8 deletions
diff --git a/Settings/AndroidManifest.xml b/Settings/AndroidManifest.xml
index 882b561d5..fbade5f6d 100644
--- a/Settings/AndroidManifest.xml
+++ b/Settings/AndroidManifest.xml
@@ -560,9 +560,8 @@
</intent-filter>
</activity>
- <!-- Dummy activity for CTS
- TODO: implement something useful -->
- <activity android:name=".system.WebViewImplementation"
+ <!-- Dummy intent filters for CTS TODO: implement something useful -->
+ <activity android:name=".EmptyStubActivity"
android:exported="true"
android:excludeFromRecents="true"
android:theme="@android:style/Theme.NoDisplay">
@@ -570,8 +569,25 @@
<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" />
+ <intent-filter android:priority="1">
+ <action android:name="android.settings.IGNORE_BATTERY_OPTIMIZATION_SETTINGS" />
+ <category android:name="android.intent.category.DEFAULT" />
+ </intent-filter>
+ <intent-filter android:priority="1">
+ <action android:name="android.settings.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" />
+ <category android:name="android.intent.category.DEFAULT" />
+ <data android:scheme="package" />
+ </intent-filter>
+ <intent-filter android:priority="1">
+ <action android:name="android.settings.IGNORE_BACKGROUND_DATA_RESTRICTIONS_SETTINGS" />
+ <category android:name="android.intent.category.DEFAULT" />
+ <data android:scheme="package" />
+ </intent-filter>
+ <intent-filter android:priority="1">
+ <action android:name="android.settings.MANAGE_DEFAULT_APPS_SETTINGS" />
+ <action android:name="android.settings.HOME_SETTINGS" />
+ <category android:name="android.intent.category.DEFAULT" />
+ </intent-filter>
</activity>
</application>
diff --git a/Settings/src/com/android/tv/settings/system/WebViewImplementation.java b/Settings/src/com/android/tv/settings/EmptyStubActivity.java
index 8853b4188..ce6a69915 100644
--- a/Settings/src/com/android/tv/settings/system/WebViewImplementation.java
+++ b/Settings/src/com/android/tv/settings/EmptyStubActivity.java
@@ -14,14 +14,13 @@
* limitations under the License
*/
-package com.android.tv.settings.system;
+package com.android.tv.settings;
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 {
+public class EmptyStubActivity extends Activity {
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);