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

Commit 364cd109 authored by Charlie Tsai's avatar Charlie Tsai Committed by Android (Google) Code Review
Browse files

Merge "Fixed Intent parsing error of PreferenceScreen"

parents 1163568d f7fe5a7f
Loading
Loading
Loading
Loading
+14 −2
Original line number Diff line number Diff line
@@ -772,8 +772,20 @@ public final class BridgeTypedArray extends TypedArray {
     */
    @Override
    public boolean getValue(int index, TypedValue outValue) {
        // TODO: more switch cases for other types.
        outValue.type = getType(index);
        switch (outValue.type) {
            case TYPE_NULL:
                return false;
            case TYPE_STRING:
                outValue.string = getString(index);
                return true;
            default:
                // For back-compatibility, parse as float.
                String s = getString(index);
        return s != null && ResourceHelper.parseFloatAttribute(mNames[index], s, outValue, false);
                return s != null &&
                        ResourceHelper.parseFloatAttribute(mNames[index], s, outValue, false);
        }
    }

    @Override