Add log for setDataEnabledForReason
To know who change the mobile data Bug: 331843727 Test: NA Adding log only Change-Id: I3ef5662102761541cd3e0e4662e0acab07c71937
This commit is contained in:
@@ -222,6 +222,7 @@ public class ProviderModelSlice extends WifiSlice {
|
||||
// If we need to display a reminder dialog box, do nothing here.
|
||||
return;
|
||||
} else {
|
||||
log("setMobileDataEnabled: " + newState);
|
||||
MobileNetworkUtils.setMobileDataEnabled(mContext, defaultSubId, newState,
|
||||
false /* disableOtherSubscriptions */);
|
||||
}
|
||||
@@ -251,6 +252,7 @@ public class ProviderModelSlice extends WifiSlice {
|
||||
.setPositiveButton(
|
||||
com.android.internal.R.string.alert_windows_notification_turn_off_action,
|
||||
(dialog, which) -> {
|
||||
log("setMobileDataEnabled: false");
|
||||
MobileNetworkUtils.setMobileDataEnabled(mContext, defaultSubId,
|
||||
false /* enabled */,
|
||||
false /* disableOtherSubscriptions */);
|
||||
|
||||
Reference in New Issue
Block a user