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

Commit 800d2ade authored by Yining Liu's avatar Yining Liu
Browse files

Clean up flag notification_async_hybrid_view_inflation 5

The impact of this flag is particularly wide, so breaking down the flag
removal by method for code robustness and easier review. This change
cleans up the flag itself. By this step, there should be no usages of
the flag across the project anymore.

Clean up flag:
com.android.systemui.notification_async_hybrid_view_inflation

Fix: 409612328
Test: SingleLineViewInflaterTest, SingleLineViewBinderTest,
NotifUiAdjustmentProviderTest
Flag: EXEMPT flag cleanup

Change-Id: I26d870e50d811bceafbc5eff8d5aa7739aaf4967
parent c7da5b37
Loading
Loading
Loading
Loading
+0 −7
Original line number Original line Diff line number Diff line
@@ -111,13 +111,6 @@ flag {
    bug: "217799515"
    bug: "217799515"
}
}


flag {
    name: "notification_async_hybrid_view_inflation"
    namespace: "systemui"
    description: "Inflates hybrid (single-line) notification views from the background thread."
    bug: "217799515"
}

flag {
flag {
    name: "notification_color_update_logger"
    name: "notification_color_update_logger"
    namespace: "systemui"
    namespace: "systemui"
+0 −30
Original line number Original line Diff line number Diff line
/*
 * Copyright (C) 2023 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.android.systemui.statusbar.notification.row.shared

import com.android.systemui.Flags
import com.android.systemui.flags.FlagToken

/** Helper for reading or using the async hybrid view inflation flag state. */
@Suppress("NOTHING_TO_INLINE")
object AsyncHybridViewInflation {
    const val FLAG_NAME = Flags.FLAG_NOTIFICATION_ASYNC_HYBRID_VIEW_INFLATION

    /** A token used for dependency declaration */
    val token: FlagToken
        get() = FlagToken(FLAG_NAME, true)
}