mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
fixed isTablet not working correctly
This commit is contained in:
parent
5836fe024e
commit
f32228cdb2
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue