Merge "Fix crash when rotating HighPowerDetail dialog" am: 783ff43769
am: 7598c6201d
Change-Id: I97e9ef07df912e7bac3c4657272feab943bcb84e
This commit is contained in:
@@ -131,7 +131,7 @@ public class HighPowerDetail extends DialogFragment implements OnClickListener,
|
||||
public void onDismiss(DialogInterface dialog) {
|
||||
super.onDismiss(dialog);
|
||||
Fragment target = getTargetFragment();
|
||||
if (target != null) {
|
||||
if (target != null && target.getActivity() != null) {
|
||||
target.onActivityResult(getTargetRequestCode(), 0, null);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user