summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/systemui/util/LargeScreenUtils.kt
blob: 8b29310cf1c555ff140f920b250737c273716b07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package com.android.systemui.util

import android.content.res.Resources
import com.android.systemui.R

object LargeScreenUtils {

    /**
     * Returns true if the device should use the split notification shade, based on orientation and
     * screen width.
     */
    @JvmStatic
    fun shouldUseSplitNotificationShade(resources: Resources): Boolean {
        return resources.getBoolean(R.bool.config_use_split_notification_shade)
    }

    /**
     * Returns true if we should use large screen shade header:
     * [com.android.systemui.statusbar.phone.LargeScreenShadeHeaderController]
     * That should be true when we have enough horizontal space to show all info in one row.
     */
    @JvmStatic
    fun shouldUseLargeScreenShadeHeader(resources: Resources): Boolean {
        return resources.getBoolean(R.bool.config_use_large_screen_shade_header)
    }
}