Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 07c0e650 authored by Chandru S's avatar Chandru S
Browse files

Avoid logging in userdebug builds


Bug: 422011635
Flag: EXEMPT logging change
Test: NA
Change-Id: I1bbf42413d3ba68b2f046b1f1ae84d0d45385a03
parent 78a65802
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -55,7 +55,7 @@ import java.util.concurrent.Executor;
 */
public class ScrimView extends View {
    private static final String TAG = "ScrimView";
    private static final boolean isDebugLoggable = Build.isDebuggable() || Log.isLoggable(TAG,
    private static final boolean isDebugLoggable = Build.IS_ENG || Log.isLoggable(TAG,
            Log.DEBUG);

    private final Object mColorLock = new Object();
+1 −1
Original line number Diff line number Diff line
@@ -285,6 +285,6 @@ constructor(
    companion object {
        const val TRACK_NAME = "BlurUtils"
        private const val TAG = "BlurUtils"
        private val isLoggable = Log.isLoggable(TAG, Log.VERBOSE) || Build.isDebuggable()
        private val isLoggable = Log.isLoggable(TAG, Log.VERBOSE) || Build.IS_ENG
    }
}
+0 −3
Original line number Diff line number Diff line
@@ -18,7 +18,6 @@ package com.android.systemui.window.data.repository

import android.app.ActivityManager
import android.os.SystemProperties
import android.util.Log
import android.view.CrossWindowBlurListeners
import com.android.systemui.common.coroutine.ChannelExt.trySendWithFailureLogging
import com.android.systemui.dagger.SysUISingleton
@@ -34,7 +33,6 @@ import kotlinx.coroutines.channels.awaitClose
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.SharingStarted
import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.flow.onEach
import kotlinx.coroutines.flow.stateIn

typealias BlurAppliedListener = Consumer<Int>
@@ -94,7 +92,6 @@ constructor(

                awaitClose { crossWindowBlurListeners.removeListener(sendUpdate) }
            } // stateIn because this is backed by a binder call.
            .onEach { Log.d(TAG, "isBlurSupported changed to $it") }
            .stateIn(scope, SharingStarted.WhileSubscribed(), false)

    override var blurAppliedListener: BlurAppliedListener? = null