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