diff options
author | xshu <xshu@google.com> | 2018-04-06 15:09:22 -0700 |
---|---|---|
committer | xshu <xshu@google.com> | 2018-04-06 15:10:43 -0700 |
commit | cd211f955772453276711624b4be8353edd17826 (patch) | |
tree | 3c2c213fa552564850ffdd49db0529ce9971abaa /service | |
parent | b7b45bcbe6bd7b30fa239345e9f05117a181934c (diff) |
Include trigger reason in the bugreport title
Bug: 77583218
Test: compile, run unit tests
Manual test:
Kill cond and observe bugreport generated
Change-Id: Idebc82897aab7e6687499610543c9359b6400f57
Diffstat (limited to 'service')
-rw-r--r-- | service/java/com/android/server/wifi/WifiController.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/service/java/com/android/server/wifi/WifiController.java b/service/java/com/android/server/wifi/WifiController.java index d825251a1..76b44c82f 100644 --- a/service/java/com/android/server/wifi/WifiController.java +++ b/service/java/com/android/server/wifi/WifiController.java @@ -653,12 +653,14 @@ public class WifiController extends StateMachine { mFirstUserSignOnSeen = true; return HANDLED; } else if (msg.what == CMD_RECOVERY_RESTART_WIFI) { - final String bugTitle = "Wi-Fi BugReport"; + final String bugTitle; final String bugDetail; if (msg.arg1 < SelfRecovery.REASON_STRINGS.length && msg.arg1 >= 0) { bugDetail = SelfRecovery.REASON_STRINGS[msg.arg1]; + bugTitle = "Wi-Fi BugReport: " + bugDetail; } else { bugDetail = ""; + bugTitle = "Wi-Fi BugReport"; } if (msg.arg1 != SelfRecovery.REASON_LAST_RESORT_WATCHDOG) { (new Handler(mWifiStateMachineLooper)).post(() -> { |