Loading packages/SystemUI/src/com/android/systemui/flags/Flags.java +0 −3 Original line number Diff line number Diff line Loading @@ -54,9 +54,6 @@ public class Flags { public static final UnreleasedFlag NSSL_DEBUG_REMOVE_ANIMATION = new UnreleasedFlag(106); public static final UnreleasedFlag NEW_PIPELINE_CRASH_ON_CALL_TO_OLD_PIPELINE = new UnreleasedFlag(107); public static final ResourceBooleanFlag NOTIFICATION_DRAG_TO_CONTENTS = new ResourceBooleanFlag(108, R.bool.config_notificationToContents); Loading packages/SystemUI/src/com/android/systemui/statusbar/notification/NotifPipelineFlags.kt +0 −16 Original line number Diff line number Diff line Loading @@ -17,30 +17,14 @@ package com.android.systemui.statusbar.notification import android.content.Context 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( val context: Context, val featureFlags: FeatureFlags ) { fun checkLegacyPipelineEnabled(): Boolean { 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 } fun isDevLoggingEnabled(): Boolean = featureFlags.isEnabled(Flags.NOTIFICATION_PIPELINE_DEVELOPER_LOGGING) Loading Loading
packages/SystemUI/src/com/android/systemui/flags/Flags.java +0 −3 Original line number Diff line number Diff line Loading @@ -54,9 +54,6 @@ public class Flags { public static final UnreleasedFlag NSSL_DEBUG_REMOVE_ANIMATION = new UnreleasedFlag(106); public static final UnreleasedFlag NEW_PIPELINE_CRASH_ON_CALL_TO_OLD_PIPELINE = new UnreleasedFlag(107); public static final ResourceBooleanFlag NOTIFICATION_DRAG_TO_CONTENTS = new ResourceBooleanFlag(108, R.bool.config_notificationToContents); Loading
packages/SystemUI/src/com/android/systemui/statusbar/notification/NotifPipelineFlags.kt +0 −16 Original line number Diff line number Diff line Loading @@ -17,30 +17,14 @@ package com.android.systemui.statusbar.notification import android.content.Context 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( val context: Context, val featureFlags: FeatureFlags ) { fun checkLegacyPipelineEnabled(): Boolean { 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 } fun isDevLoggingEnabled(): Boolean = featureFlags.isEnabled(Flags.NOTIFICATION_PIPELINE_DEVELOPER_LOGGING) Loading