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

Commit 8d131e35 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "Use abstractions to allow FullscreenUserSwitcher take advantage of...

Merge "Use abstractions to allow FullscreenUserSwitcher take advantage of SystemUIOverlayWindow." into rvc-dev am: 995e2de8

Change-Id: I552199b9bf48e69f4b0b82dc6fdcd9596d5105da
parents be554981 995e2de8
Loading
Loading
Loading
Loading
+12 −7
Original line number Original line Diff line number Diff line
@@ -16,6 +16,7 @@
-->
-->
<FrameLayout
<FrameLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/fullscreen_user_switcher"
    android:layout_width="match_parent"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:layout_height="match_parent"
    android:fitsSystemWindows="true">
    android:fitsSystemWindows="true">
@@ -24,22 +25,26 @@
        android:id="@+id/container"
        android:id="@+id/container"
        android:layout_width="match_parent"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_height="match_parent"
        android:layout_alignParentTop="true"
        android:orientation="vertical">
        android:orientation="vertical">


        <include
        <!-- TODO(b/150302361): Status bar is commented out since a top inset is being added which causes it to be displayed below the top of the screen. -->
        <!--        <include
                    layout="@layout/car_status_bar_header"
                    layout="@layout/car_status_bar_header"
                    android:layout_alignParentTop="true"
                    android:layout_alignParentTop="true"
            android:theme="@android:style/Theme"/>
                    android:theme="@android:style/Theme"/>-->



        <FrameLayout
        <FrameLayout
            android:layout_width="match_parent"
            android:layout_width="match_parent"
            android:layout_height="match_parent">
            android:layout_height="match_parent">
            <com.android.systemui.statusbar.car.UserGridRecyclerView
            <com.android.systemui.car.userswitcher.UserGridRecyclerView
                android:id="@+id/user_grid"
                android:id="@+id/user_grid"
                android:layout_width="match_parent"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center_vertical"
                android:layout_gravity="center_vertical"/>
                android:layout_marginTop="@dimen/car_user_switcher_margin_top"/>
            <!-- TODO(b/150302361): Re-add marginTop once status bar has been added back. -->
            <!--                android:layout_marginTop="@dimen/car_user_switcher_margin_top"/>-->
        </FrameLayout>
        </FrameLayout>


    </LinearLayout>
    </LinearLayout>
+1 −1
Original line number Original line Diff line number Diff line
@@ -33,7 +33,7 @@
        android:layout_width="match_parent"
        android:layout_width="match_parent"
        android:layout_height="@dimen/car_user_switcher_container_height">
        android:layout_height="@dimen/car_user_switcher_container_height">


        <com.android.systemui.statusbar.car.UserGridRecyclerView
        <com.android.systemui.car.userswitcher.UserGridRecyclerView
            android:id="@+id/user_grid"
            android:id="@+id/user_grid"
            android:layout_width="match_parent"
            android:layout_width="match_parent"
            android:layout_height="match_parent"/>
            android:layout_height="match_parent"/>
+6 −0
Original line number Original line Diff line number Diff line
@@ -58,6 +58,11 @@
        to a constant alpha percent value using the initial alpha. -->
        to a constant alpha percent value using the initial alpha. -->
    <integer name="config_finalNotificationBackgroundAlpha">100</integer>
    <integer name="config_finalNotificationBackgroundAlpha">100</integer>


    <!-- Car System UI's OverlayViewsMediator-->
    <string-array name="config_carSystemUIOverlayViewsMediators" translatable="false">
        <item>com.android.systemui.car.userswitcher.FullscreenUserSwitcherViewMediator</item>
    </string-array>

    <!-- SystemUI Services: The classes of the stuff to start. -->
    <!-- SystemUI Services: The classes of the stuff to start. -->
    <string-array name="config_systemUIServiceComponents" translatable="false">
    <string-array name="config_systemUIServiceComponents" translatable="false">
        <item>com.android.systemui.util.NotificationChannels</item>
        <item>com.android.systemui.util.NotificationChannels</item>
@@ -85,5 +90,6 @@
        <item>com.android.systemui.navigationbar.car.CarNavigationBar</item>
        <item>com.android.systemui.navigationbar.car.CarNavigationBar</item>
        <item>com.android.systemui.toast.ToastUI</item>
        <item>com.android.systemui.toast.ToastUI</item>
        <item>com.android.systemui.voicerecognition.car.ConnectedDeviceVoiceRecognitionNotifier</item>
        <item>com.android.systemui.voicerecognition.car.ConnectedDeviceVoiceRecognitionNotifier</item>
        <item>com.android.systemui.window.SystemUIOverlayWindowManager</item>
    </string-array>
    </string-array>
</resources>
</resources>
+9 −1
Original line number Original line Diff line number Diff line
@@ -39,6 +39,8 @@ import com.android.systemui.toast.ToastUI;
import com.android.systemui.util.leak.GarbageMonitor;
import com.android.systemui.util.leak.GarbageMonitor;
import com.android.systemui.voicerecognition.car.ConnectedDeviceVoiceRecognitionNotifier;
import com.android.systemui.voicerecognition.car.ConnectedDeviceVoiceRecognitionNotifier;
import com.android.systemui.volume.VolumeUI;
import com.android.systemui.volume.VolumeUI;
import com.android.systemui.window.OverlayWindowModule;
import com.android.systemui.window.SystemUIOverlayWindowManager;


import dagger.Binds;
import dagger.Binds;
import dagger.Module;
import dagger.Module;
@@ -47,7 +49,7 @@ import dagger.multibindings.IntoMap;


/** Binder for car specific {@link SystemUI} modules. */
/** Binder for car specific {@link SystemUI} modules. */
@Module(includes = {RecentsModule.class, CarStatusBarModule.class, NotificationsModule.class,
@Module(includes = {RecentsModule.class, CarStatusBarModule.class, NotificationsModule.class,
        BubbleModule.class, KeyguardModule.class})
        BubbleModule.class, KeyguardModule.class, OverlayWindowModule.class})
public abstract class CarSystemUIBinder {
public abstract class CarSystemUIBinder {
    /** Inject into AuthController. */
    /** Inject into AuthController. */
    @Binds
    @Binds
@@ -182,4 +184,10 @@ public abstract class CarSystemUIBinder {
    @ClassKey(ConnectedDeviceVoiceRecognitionNotifier.class)
    @ClassKey(ConnectedDeviceVoiceRecognitionNotifier.class)
    public abstract SystemUI bindConnectedDeviceVoiceRecognitionNotifier(
    public abstract SystemUI bindConnectedDeviceVoiceRecognitionNotifier(
            ConnectedDeviceVoiceRecognitionNotifier sysui);
            ConnectedDeviceVoiceRecognitionNotifier sysui);

    /** Inject into SystemUIOverlayWindowManager. */
    @Binds
    @IntoMap
    @ClassKey(SystemUIOverlayWindowManager.class)
    public abstract SystemUI bindSystemUIPrimaryWindowManager(SystemUIOverlayWindowManager sysui);
}
}
Loading