[Settings] Start SettingsDumpService to dump the db log after the db is
created. Bug: 275144372 Test: adb bugreport Change-Id: I9d7fe2e763b9e5840ee76c5eb00bc88288e7ee41
This commit is contained in:
@@ -30,6 +30,7 @@ import androidx.fragment.app.Fragment;
|
||||
import androidx.lifecycle.LifecycleOwner;
|
||||
|
||||
import com.android.settings.R;
|
||||
import com.android.settings.SettingsDumpService;
|
||||
import com.android.settings.Utils;
|
||||
import com.android.settings.core.OnActivityResultListener;
|
||||
import com.android.settings.dashboard.DashboardFragment;
|
||||
@@ -122,6 +123,11 @@ public class NetworkDashboardFragment extends DashboardFragment implements
|
||||
}
|
||||
controllers.add(privateDnsPreferenceController);
|
||||
controllers.add(new NetworkProviderCallsSmsController(context, lifecycle, lifecycleOwner));
|
||||
|
||||
// Start SettingsDumpService after the MobileNetworkRepository is created.
|
||||
Intent intent = new Intent(context, SettingsDumpService.class);
|
||||
intent.putExtra(SettingsDumpService.EXTRA_KEY_SHOW_NETWORK_DUMP, true);
|
||||
context.startService(intent);
|
||||
return controllers;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user