Skip to content

Commit 757c1b4

Browse files
committed
Add XML API level trick.
These can be used in XML files to disable items on devices that aren't running the required API level: Bug: 38447085 Test: Run on device Change-Id: I6f85ef9cacd4e001e73bc10d0b26c70b04c55cb5
1 parent a832bee commit 757c1b4

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

app/src/main/res/values-v26/bool.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
<bool name="is_o_or_later">true</bool>
4+
</resources>

app/src/main/res/values/bools.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
<bool name="is_o_or_later">false</bool>
4+
</resources>
5+

0 commit comments

Comments
 (0)