Handle data warning/limit notification actions.
Respond to user interaction with data warning/limit notifications
shown by NetworkPolicyManager. Show correct tab for the template that
triggered notification. When data is disabled, prompt user with
dialog and option to re-enable.
Change-Id: I73aeecc0e840fffa2b4cdb90af269115ed0ab56c
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 8f86002..25eced1 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -1133,7 +1133,12 @@
android:label="@string/data_usage_summary_title">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
- <action android:name="android.intent.action.DATA_USAGE_SUMMARY" />
+ <category android:name="android.intent.category.DEFAULT" />
+ </intent-filter>
+ <intent-filter>
+ <!-- actions from NetworkPolicyManager notifications -->
+ <action android:name="android.intent.action.DATA_USAGE_WARNING" />
+ <action android:name="android.intent.action.DATA_USAGE_LIMIT" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<meta-data android:name="com.android.settings.FRAGMENT_CLASS"