commit | dd8d392d7dbd9cec98b2db98e5cd2310d983b2e2 | [log] [tgz] |
---|---|---|
author | Julia Reynolds <juliacr@google.com> | Wed Mar 29 10:41:22 2017 -0400 |
committer | Julia Reynolds <juliacr@google.com> | Wed Mar 29 10:42:07 2017 -0400 |
tree | fd8a167e19a97c31308a09a7d0f828b03260f10a | |
parent | d40ea0a963c1c195ca2c26d2407ef4c514807543 [diff] |
Don't run postexecute if activity is gone. Change-Id: I9133a4d9e4e0fd2a92cc4df786e0bc5407d981fe Fixes: 36551766 Test: monkey tests
diff --git a/src/com/android/settings/notification/AppNotificationSettings.java b/src/com/android/settings/notification/AppNotificationSettings.java index fec489a..c38b89d 100644 --- a/src/com/android/settings/notification/AppNotificationSettings.java +++ b/src/com/android/settings/notification/AppNotificationSettings.java
@@ -102,6 +102,9 @@ @Override protected void onPostExecute(Void unused) { + if (getHost() == null) { + return; + } populateChannelList(); } }.execute();