fix: Conflict incoming changes from 15-dev

This commit is contained in:
Pun Butrach committed 2026-01-10 20:49:12 +07:00
1 parent 14e352c827
commit 2e76c99dad
1726 files changed
+146970 -95027

No files matched your search

@@ -282,14 +282,15 @@ public class AutoInstallsLayout {
*
* @param out array of size 2.
*/
protected void parseContainerAndScreen(XmlPullParser parser, int[] out) {
protected void parseContainerAndScreen(XmlPullParser parser, int[] out)
throws XmlPullParserException {
if (HOTSEAT_CONTAINER_NAME.equals(getAttributeValue(parser, ATTR_CONTAINER))) {
out[0] = Favorites.CONTAINER_HOTSEAT;
// Hack: hotseat items are stored using screen ids
out[1] = Integer.parseInt(getAttributeValue(parser, ATTR_RANK));
out[1] = getAttributeValueAsInt(parser, ATTR_RANK);
} else {
out[0] = Favorites.CONTAINER_DESKTOP;
out[1] = Integer.parseInt(getAttributeValue(parser, ATTR_SCREEN));
out[1] = getAttributeValueAsInt(parser, ATTR_SCREEN);
}
}
@@ -703,6 +704,16 @@ public class AutoInstallsLayout {
return value;
}
protected static int getAttributeValueAsInt(XmlPullParser parser, String attribute)
throws XmlPullParserException {
String value = getAttributeValue(parser, attribute);
if (value == null) {
throw new XmlPullParserException("Missing attribute " + attribute);
} else {
return Integer.parseInt(value);
}
}
/**
* Return attribute value, attempting launcher-specific namespace first
* before falling back to anonymous attribute.