fixed isTablet not working correctly

This commit is contained in:
Jays2Kings 2021-10-28 00:13:55 -04:00
parent 5836fe024e
commit f32228cdb2

View file

@ -158,7 +158,7 @@ val Float.dpToPxEnd: Float
val Resources.isLTR
get() = configuration.layoutDirection == View.LAYOUT_DIRECTION_LTR
fun Context.isTablet() = resources.configuration.smallestScreenWidthDp >= 600.dpToPx
fun Context.isTablet() = resources.configuration.smallestScreenWidthDp >= 600
/**
* Helper method to create a notification builder.