Check for setTextDirection API level