Fixup recent fix to flex basis and put it behind an experimental flag

Reviewed By: gkassabli

Differential Revision: D4222910

fbshipit-source-id: d693482441fcc4d37a288e2e3529057a04f60541
This commit is contained in:
Emil Sjolander
2016-11-23 05:25:50 -08:00
committed by Facebook Github Bot
parent 68c6d71cea
commit dad520476e
5 changed files with 15 additions and 10 deletions

View File

@@ -10,7 +10,8 @@
package com.facebook.csslayout;
public enum CSSExperimentalFeature {
ROUNDING(0);
ROUNDING(0),
WEB_FLEX_BASIS(1);
private int mIntValue;
@@ -25,6 +26,7 @@ public enum CSSExperimentalFeature {
public static CSSExperimentalFeature fromInt(int value) {
switch (value) {
case 0: return ROUNDING;
case 1: return WEB_FLEX_BASIS;
default: throw new IllegalArgumentException("Unkown enum value: " + value);
}
}