diff --git a/core/java/android/content/res/Configuration.java b/core/java/android/content/res/Configuration.java index 0b7784222a129..71647130646b6 100644 --- a/core/java/android/content/res/Configuration.java +++ b/core/java/android/content/res/Configuration.java @@ -536,8 +536,8 @@ public final class Configuration implements Parcelable, ComparablescreenLayout&~ResTable_config::MASK_LAYOUTDIR) | ResTable_config::LAYOUTDIR_ANY; return true; - } else if (strcmp(name, "ltr") == 0) { + } else if (strcmp(name, "ldltr") == 0) { if (out) out->screenLayout = (out->screenLayout&~ResTable_config::MASK_LAYOUTDIR) | ResTable_config::LAYOUTDIR_LTR; return true; - } else if (strcmp(name, "rtl") == 0) { + } else if (strcmp(name, "ldrtl") == 0) { if (out) out->screenLayout = (out->screenLayout&~ResTable_config::MASK_LAYOUTDIR) | ResTable_config::LAYOUTDIR_RTL;