1 package com.android.systemui.util 2 3 import android.content.res.Resources 4 import com.android.systemui.R 5 6 object LargeScreenUtils { 7 8 /** 9 * Returns true if the device should use the split notification shade, based on orientation and 10 * screen width. 11 */ 12 @JvmStatic 13 fun shouldUseSplitNotificationShade(resources: Resources): Boolean { 14 return resources.getBoolean(R.bool.config_use_split_notification_shade) 15 } 16 17 /** 18 * Returns true if we should use large screen shade header: 19 * [com.android.systemui.statusbar.phone.LargeScreenShadeHeaderController] 20 * That should be true when we have enough horizontal space to show all info in one row. 21 */ 22 @JvmStatic 23 fun shouldUseLargeScreenShadeHeader(resources: Resources): Boolean { 24 return resources.getBoolean(R.bool.config_use_large_screen_shade_header) 25 } 26 }