From 6bb8cc57e57ab041606e55805e5bba3fb32b128e Mon Sep 17 00:00:00 2001 From: chrislo27 Date: Sun, 5 Feb 2017 10:49:33 -0800 Subject: [PATCH] Fix nextLanguage --- core/src/ionium/util/i18n/Localization.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/src/ionium/util/i18n/Localization.java b/core/src/ionium/util/i18n/Localization.java index b78b45ed1..072fc61ae 100644 --- a/core/src/ionium/util/i18n/Localization.java +++ b/core/src/ionium/util/i18n/Localization.java @@ -70,14 +70,16 @@ public static String get(String key, Object... params) { } public void nextLanguage(int advance) { - if (advance == 0) return; + if (advance == 0) { + return; + } int currentIndex = 0; for (int i = 0; i < bundles.size; i++) { if (bundles.get(i) == selectedBundle) { currentIndex = i; - return; + break; } }