commit | cb911e3402313fee7565b7a198dff301a6215cdb | [log] [tgz] |
---|---|---|
author | Zhendong Yang <zhendong.x.yang@sonymobile.com> | Thu Mar 24 10:54:49 2016 +0800 |
committer | Yoshinori Hirano <yoshinori.hirano@sonymobile.com> | Mon Dec 12 20:55:40 2016 +0900 |
tree | 7162d3191c5d076785bd9acb128a6f36e328cd9d | |
parent | 5c6e7a211614c7f9056c22393500097cf6ea11f0 [diff] |
Fix crash when rotating HighPowerDetail dialog When rotating the device, the Activity of the target Fragment become null. So NullPointerException occurs. The dialog should check if the Activity is null before calling onActivityResult(). Bug: 28333723 Test: manual - go to Settings > Apps > Clock, click Battery optimization and rotate device Change-Id: I7f68d6ece7d169fd96d04c1788e55ee506aae1ae