mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
remove isTablet attr
This commit is contained in:
parent
aefc89aeae
commit
953a86b280
3 changed files with 1 additions and 6 deletions
|
@ -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.
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<bool name="isTablet">true</bool>
|
||||
</resources>
|
|
@ -48,6 +48,5 @@
|
|||
<attr name="endIcon" format="reference"/>
|
||||
</declare-styleable>
|
||||
|
||||
<bool name="isTablet">false</bool>
|
||||
<bool name="isLightMode">true</bool>
|
||||
</resources>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue