Fix a crash due to absence of no-arg fragment init
Fix a crash due to absence of no-arg fragment constructor. e.g. if the dialog were shown and the device were rotated, the dialog could not be restored. Bug: 272439218 Test: Manual with repro steps before and after Change-Id: Idca052acff709af132fa72f7919aa71fe8060595
This commit is contained in:
@@ -77,7 +77,7 @@ public class LocationTimeZoneDetectionPreferenceController
|
||||
boolean isLocationEnabled =
|
||||
timeZoneCapabilitiesAndConfig.getCapabilities().isUseLocationEnabled();
|
||||
if (isChecked && !isLocationEnabled) {
|
||||
new LocationToggleDisabledDialogFragment(mContext)
|
||||
new LocationToggleDisabledDialogFragment()
|
||||
.show(mFragment.getFragmentManager(), TAG);
|
||||
// Toggle status is not updated.
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user