mirror of
https://github.com/revanced/Apktool.git
synced 2024-11-06 12:47:03 +01:00
* style: reorg getAttributes (StyledString) * test: assertion for aapt2 string (#2815)
This commit is contained in:
parent
c1f6dc792a
commit
b7c56c8928
@ -82,9 +82,10 @@ public class StyledString {
|
||||
public Map<String, String> getAttributes() {
|
||||
int separatorIdx = tag.indexOf(';');
|
||||
return separatorIdx == -1 ? null : ATTRIBUTES_SPLITTER.split(
|
||||
tag.substring(separatorIdx + 1, tag.endsWith(";") ? tag.length() - 1 : tag.length()));
|
||||
tag.substring(separatorIdx + 1, tag.endsWith(";") ? tag.length() - 1 : tag.length())
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public int compareTo(Span o) {
|
||||
int res = Integer.compare(firstChar, o.firstChar);
|
||||
|
@ -4,4 +4,5 @@
|
||||
<string name="long_string_32767" />
|
||||
<string name="surrogate_issue_2299">🔆</string>
|
||||
<string name="html_string_issue_2632"><ul> <li><b>aaaaa aa aaaaa</b> – aaaaaaa aaaaaaaaaa aa aaaaaaaa aaaaaa aaaaa (aaaa) aaaa aaaaaaaaa aaaaa aa aaaaaaaaa aaaaaaa aaaa</li> <li><b>aaaaaaaaa aaaaaaaaaaaaaaa aaaaaaaa</b> – aaaaaaa aaaaaaaaaa aaaaaaaaa aaaa aaaaaa aa aaaa aaaa aaaa aaaa aaaaaaa aaaaaaaaaaaaa, aaaaaa aaa aaaaaaaaaa (aaa) aaaaaaaaaaaaaaa</li> <li><b>aaaaaaaaaaa aaaaaa aaaaaaaaaa</b> – aaaaaaaaaa aaaa aaaaaa aa a aaa aa aaaaaa aaa aaaaaaa (aaaaa aaaaaaaa) aaaaaaaa aa aaaaaa aaaaa aaa aaaa</li> </ul></string>
|
||||
<string name="styled_string_issue_2815">Quickly zoom in on the screen to display content more clearly.<br/><br/> <b>To zoom in:</b><br/> 1. Use shortcut to start magnification<br/> 2. Tap the screen<br/> 3. Drag 2 fingers to move around screen<br/> 4. Pinch with 2 fingers to adjust zoom<br/> 5. Use shortcut to stop magnification<br/><br/> <b>To zoom in temporarily:</b><br/> 1. Use shortcut to start magnification<br/> 2. Touch & hold anywhere on the screen<br/> 3. Drag finger to move around screen<br/> 4. Lift finger to stop magnification</string>
|
||||
</resources>
|
||||
|
Loading…
Reference in New Issue
Block a user