[Settings] Adjust the finish procedure when launching Settings UI
Replace finishFragment() by finish() Bug: 240515161 Test: local testing Change-Id: I3d8b9b02998f09122a63f2262817acff3ca84d2e
This commit is contained in:
@@ -71,7 +71,7 @@ public class MobileNetworkListFragment extends DashboardFragment {
|
||||
protected List<AbstractPreferenceController> createPreferenceControllers(Context context) {
|
||||
final List<AbstractPreferenceController> controllers = new ArrayList<>();
|
||||
if (!SubscriptionUtil.isSimHardwareVisible(getContext())) {
|
||||
finishFragment();
|
||||
finish();
|
||||
return controllers;
|
||||
}
|
||||
|
||||
|
@@ -121,7 +121,7 @@ public class MobileNetworkSettings extends AbstractMobileNetworkSettings {
|
||||
@Override
|
||||
protected List<AbstractPreferenceController> createPreferenceControllers(Context context) {
|
||||
if (!SubscriptionUtil.isSimHardwareVisible(context)) {
|
||||
finishFragment();
|
||||
finish();
|
||||
return Arrays.asList();
|
||||
}
|
||||
if (getArguments() == null) {
|
||||
|
Reference in New Issue
Block a user