Modify the value of intent-filter

ACTION_PROMPT_PARTIAL_CONNECTIVITY, ACTION_PROMPT_UNVALIDATED
and ACTION_PROMPT_LOST_VALIDATION has exposed and their value
also need to be updated due to API lint errors.

Bug: 172183305
Test: Check NO_INTERNET notification can be shown.
Change-Id: I40dfeec1c25cd549bbe5559e3c3ce21813fbf922
This commit is contained in:
lucaslin
2021-02-22 10:37:16 +08:00
parent cb2c6bf3fa
commit aaf21230a1

View File

@@ -396,12 +396,15 @@
android:exported="true"
android:permission="android.permission.NETWORK_STACK"
android:theme="@*android:style/Theme.DeviceDefault.Dialog.Alert.DayNight">
<!-- TODO: Consider removing below two intent filters.
It seems like below two intent filters can be removed because when the notification
is clicked, this activity will be launched anyway. -->
<intent-filter>
<action android:name="android.net.conn.PROMPT_UNVALIDATED" />
<action android:name="android.net.action.PROMPT_UNVALIDATED" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<intent-filter>
<action android:name="android.net.conn.PROMPT_LOST_VALIDATION" />
<action android:name="android.net.action.PROMPT_LOST_VALIDATION" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<meta-data android:name="com.android.settings.PRIMARY_PROFILE_CONTROLLED"