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

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

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

View File

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