Fix SDK version condition for setLayerType call

Method requires API level 11; previously, this checked only for >11.