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

Commit 842b09eb authored by Jeff DeCew's avatar Jeff DeCew
Browse files

Reorganize some logic within NotificationRowContentBinderImpl

* beginInflationAsync is a new method that wraps createRemoteViews
* createRemoteViews *only* creates a NewRemoteViews object that holds the RemoteViews for each state
* ConversationNotificationProcessor is now called within beginInflationAsync instead of in that method's callers
* SingleLineViewModel is created inside beginInflationAsync instead of in that method's callers

Bug: 343942780
Flag: com.android.systemui.notification_row_content_binder_refactor
Test: atest NotificationRowContentBinderImplTest
Change-Id: I24f9e6dd6dc27deb8c1b9b5ee47e9483e56ff45b
parent a1d5023a
Loading
Loading
Loading
Loading
+223 −175

File changed.

Preview size limit exceeded, changes collapsed.

+28 −0
Original line number Diff line number Diff line
/*
 * Copyright (C) 2024 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 android.widget.RemoteViews

class NewRemoteViews(
    val contracted: RemoteViews?,
    val headsUp: RemoteViews?,
    val expanded: RemoteViews?,
    val public: RemoteViews?,
    val normalGroupHeader: RemoteViews?,
    val minimizedGroupHeader: RemoteViews?,
)