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

Commit 4aaa6a63 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Make MultiDisplayAutoHideControllerStore a CoreStartable" into main

parents 7f80719d 2d490709
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -207,5 +207,19 @@ interface StatusBarPhoneModule {
                singleDisplayLazy.get()
            }
        }

        @Provides
        @SysUISingleton
        @IntoMap
        @ClassKey(AutoHideControllerStore::class)
        fun storeAsCoreStartable(
            multiDisplayLazy: Lazy<MultiDisplayAutoHideControllerStore>
        ): CoreStartable {
            return if (StatusBarConnectedDisplays.isEnabled) {
                multiDisplayLazy.get()
            } else {
                CoreStartable.NOP
            }
        }
    }
}