Merge "SystemUI: Fix issue that log can't be enabled in MobileSignalController"

This commit is contained in:
Evan Laird
2022-06-22 14:04:17 +00:00
committed by Gerrit Code Review

View File

@@ -110,7 +110,7 @@ public class MobileSignalController extends SignalController<MobileState, Mobile
@Override @Override
public void onMobileStatusChanged(boolean updateTelephony, public void onMobileStatusChanged(boolean updateTelephony,
MobileStatus mobileStatus) { MobileStatus mobileStatus) {
if (Log.isLoggable(mTag, Log.DEBUG)) { if (DEBUG) {
Log.d(mTag, "onMobileStatusChanged=" Log.d(mTag, "onMobileStatusChanged="
+ " updateTelephony=" + updateTelephony + " updateTelephony=" + updateTelephony
+ " mobileStatus=" + mobileStatus.toString()); + " mobileStatus=" + mobileStatus.toString());
@@ -719,7 +719,7 @@ public class MobileSignalController extends SignalController<MobileState, Mobile
* This will call listeners if necessary. * This will call listeners if necessary.
*/ */
private void updateTelephony() { private void updateTelephony() {
if (Log.isLoggable(mTag, Log.DEBUG)) { if (DEBUG) {
Log.d(mTag, "updateTelephonySignalStrength: hasService=" Log.d(mTag, "updateTelephonySignalStrength: hasService="
+ mCurrentState.isInService() + mCurrentState.isInService()
+ " ss=" + mCurrentState.signalStrength + " ss=" + mCurrentState.signalStrength