parseLayout function

Layout parseLayout(
  1. String str
)

Implementation

Layout parseLayout(String str) {
  if (getLayoutName(Layout.layout_native) == str)
    return Layout.half_width;
  else if (getLayoutName(Layout.full_width) == str)
    return Layout.full_width;
  else if (getLayoutName(Layout.custom) == str)
    return Layout.custom;
  else
    return Layout.layout_native;
}