Loading packages/SystemUI/src/com/android/systemui/flags/Flags.java +3 −0 Original line number Diff line number Diff line Loading @@ -55,6 +55,9 @@ public class Flags { public static final BooleanFlag NSSL_DEBUG_REMOVE_ANIMATION = new BooleanFlag(106, false); public static final BooleanFlag NEW_PIPELINE_CRASH_ON_CALL_TO_OLD_PIPELINE = new BooleanFlag(107, false); /***************************************/ // 200 - keyguard/lockscreen Loading packages/SystemUI/src/com/android/systemui/statusbar/notification/NotifPipelineFlags.kt +11 −2 Original line number Diff line number Diff line Loading @@ -21,6 +21,7 @@ import android.util.Log import android.widget.Toast import com.android.systemui.flags.FeatureFlags import com.android.systemui.flags.Flags import com.android.systemui.util.Compile import javax.inject.Inject class NotifPipelineFlags @Inject constructor( Loading @@ -31,8 +32,16 @@ class NotifPipelineFlags @Inject constructor( if (!isNewPipelineEnabled()) { return true } Log.d("NotifPipeline", "Old pipeline code running w/ new pipeline enabled", Exception()) if (Compile.IS_DEBUG) { Toast.makeText(context, "Old pipeline code running!", Toast.LENGTH_SHORT).show() } if (featureFlags.isEnabled(Flags.NEW_PIPELINE_CRASH_ON_CALL_TO_OLD_PIPELINE)) { throw RuntimeException("Old pipeline code running with new pipeline enabled") } else { Log.d("NotifPipeline", "Old pipeline code running with new pipeline enabled", Exception()) } return false } Loading Loading
packages/SystemUI/src/com/android/systemui/flags/Flags.java +3 −0 Original line number Diff line number Diff line Loading @@ -55,6 +55,9 @@ public class Flags { public static final BooleanFlag NSSL_DEBUG_REMOVE_ANIMATION = new BooleanFlag(106, false); public static final BooleanFlag NEW_PIPELINE_CRASH_ON_CALL_TO_OLD_PIPELINE = new BooleanFlag(107, false); /***************************************/ // 200 - keyguard/lockscreen Loading
packages/SystemUI/src/com/android/systemui/statusbar/notification/NotifPipelineFlags.kt +11 −2 Original line number Diff line number Diff line Loading @@ -21,6 +21,7 @@ import android.util.Log import android.widget.Toast import com.android.systemui.flags.FeatureFlags import com.android.systemui.flags.Flags import com.android.systemui.util.Compile import javax.inject.Inject class NotifPipelineFlags @Inject constructor( Loading @@ -31,8 +32,16 @@ class NotifPipelineFlags @Inject constructor( if (!isNewPipelineEnabled()) { return true } Log.d("NotifPipeline", "Old pipeline code running w/ new pipeline enabled", Exception()) if (Compile.IS_DEBUG) { Toast.makeText(context, "Old pipeline code running!", Toast.LENGTH_SHORT).show() } if (featureFlags.isEnabled(Flags.NEW_PIPELINE_CRASH_ON_CALL_TO_OLD_PIPELINE)) { throw RuntimeException("Old pipeline code running with new pipeline enabled") } else { Log.d("NotifPipeline", "Old pipeline code running with new pipeline enabled", Exception()) } return false } Loading