Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4186c977 authored by Wale Ogunwale's avatar Wale Ogunwale Committed by Android (Google) Code Review
Browse files

Merge "Don't write IntentFilter autoVerify field to xml if false." into mnc-dev

parents 33e07bd7 15b9fd26
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1480,7 +1480,11 @@ public class IntentFilter implements Parcelable {
     * Write the contents of the IntentFilter as an XML stream.
     */
    public void writeToXml(XmlSerializer serializer) throws IOException {
        serializer.attribute(null, AUTO_VERIFY_STR, Boolean.toString(getAutoVerify()));

        if (getAutoVerify()) {
            serializer.attribute(null, AUTO_VERIFY_STR, Boolean.toString(true));
        }

        int N = countActions();
        for (int i=0; i<N; i++) {
            serializer.startTag(null, ACTION_STR);