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

Commit f26d01a7 authored by Jason Sams's avatar Jason Sams Committed by Android (Google) Code Review
Browse files

Merge "Add boolean support for setVar."

parents 07b236ed 0b9a22cf
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -77,6 +77,10 @@ public class Script extends BaseObj {
        mRS.nScriptSetVarI(mID, index, v);
    }

    public void setVar(int index, boolean v) {
        mRS.nScriptSetVarI(mID, index, v ? 1 : 0);
    }

    public void setVar(int index, FieldPacker v) {
        mRS.nScriptSetVarV(mID, index, v.getData());
    }