diff options
author | Nate Jiang <qiangjiang@google.com> | 2019-08-20 17:20:34 -0700 |
---|---|---|
committer | Nate Jiang <qiangjiang@google.com> | 2019-08-22 18:10:05 -0700 |
commit | 12c4b964dfe9412ef62f20afa6b295968d2e5f06 (patch) | |
tree | 76c2722816d11b7f883d427a37536e3a726015d7 /tests | |
parent | a0107b5554f7ed39478418940c9b1c2315a121cb (diff) |
[NetworkSuggestion] change notification content
Change the notification content of first time apply network suggestion
Test: acts WifiNetworkSuggestionTest
Bug: 139037269
Change-Id: I1e831b5322e12f030388c7ca81a6456ec77009ed
Diffstat (limited to 'tests')
-rw-r--r-- | tests/wifitests/src/com/android/server/wifi/WifiNetworkSuggestionsManagerTest.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/wifitests/src/com/android/server/wifi/WifiNetworkSuggestionsManagerTest.java b/tests/wifitests/src/com/android/server/wifi/WifiNetworkSuggestionsManagerTest.java index 9b462681a..ae4da66d6 100644 --- a/tests/wifitests/src/com/android/server/wifi/WifiNetworkSuggestionsManagerTest.java +++ b/tests/wifitests/src/com/android/server/wifi/WifiNetworkSuggestionsManagerTest.java @@ -20,7 +20,7 @@ import static android.app.AppOpsManager.MODE_ALLOWED; import static android.app.AppOpsManager.MODE_IGNORED; import static android.app.AppOpsManager.OPSTR_CHANGE_WIFI_STATE; import static android.app.AppOpsManager.OP_CHANGE_WIFI_STATE; -import static android.app.Notification.EXTRA_TEXT; +import static android.app.Notification.EXTRA_BIG_TEXT; import static com.android.server.wifi.WifiNetworkSuggestionsManager.NOTIFICATION_USER_ALLOWED_APP_INTENT_ACTION; import static com.android.server.wifi.WifiNetworkSuggestionsManager.NOTIFICATION_USER_DISALLOWED_APP_INTENT_ACTION; @@ -2196,7 +2196,7 @@ public class WifiNetworkSuggestionsManagerTest { private boolean checkUserApprovalNotificationParams( Notification notification, String expectedAppName) { - if (!notification.extras.getString(EXTRA_TEXT).contains(expectedAppName)) return false; + if (!notification.extras.getString(EXTRA_BIG_TEXT).contains(expectedAppName)) return false; return true; } |