Support legacy flex on android