remove isTablet attr

This commit is contained in:
Jays2Kings 2021-10-18 01:37:18 -04:00
parent aefc89aeae
commit 953a86b280
3 changed files with 1 additions and 6 deletions

View file

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

View file

@ -1,4 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool name="isTablet">true</bool>
</resources>

View file

@ -48,6 +48,5 @@
<attr name="endIcon" format="reference"/>
</declare-styleable>
<bool name="isTablet">false</bool>
<bool name="isLightMode">true</bool>
</resources>