Merge "SystemUI: Fix issue that log can't be enabled in MobileSignalController" am: 1469de0e53 am: 09a81927a8

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2062027

Change-Id: I8a4a17eee158eff713571360973cdcc9c31a07fb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Evan Laird
2022-06-22 14:49:59 +00:00
committed by Automerger Merge Worker

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());
@@ -717,7 +717,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