diff --git a/MAHAds/mah-ads-sample/src/main/java/com/mobapphome/mahads/sample/MainActivity.java b/MAHAds/mah-ads-sample/src/main/java/com/mobapphome/mahads/sample/MainActivity.java index dd03618..be19656 100644 --- a/MAHAds/mah-ads-sample/src/main/java/com/mobapphome/mahads/sample/MainActivity.java +++ b/MAHAds/mah-ads-sample/src/main/java/com/mobapphome/mahads/sample/MainActivity.java @@ -61,13 +61,14 @@ protected void onCreate(Bundle savedInstanceState) { } else if (currentLang.equals("pt")) { currentLang = "portuguese"; } else if (currentLang.equals("fr")) { - currentLang = "france"; + currentLang = "french"; } else if (currentLang.equals("ru")) { currentLang = "russia"; } else if (currentLang.equals("tr")) { currentLang = "turkey"; } + //Setting spinner to right language for (int i = 0; i < langsArray.length; i++) { if (langsArray[i].toLowerCase().startsWith(currentLang)) { @@ -165,7 +166,7 @@ public void onItemSelected(AdapterView parent, View view, int pos, long id) { LocaleHelper.setLocale(this, "az"); } else if (item.toLowerCase().startsWith("portuguese")) { LocaleHelper.setLocale(this, "pt"); - } else if (item.toLowerCase().startsWith("france")) { + } else if (item.toLowerCase().startsWith("french")) { LocaleHelper.setLocale(this, "fr"); } else if (item.toLowerCase().startsWith("russia")) { LocaleHelper.setLocale(this, "ru"); diff --git a/MAHAds/mah-ads/build.gradle b/MAHAds/mah-ads/build.gradle index 3f5c3fb..cb0f117 100644 --- a/MAHAds/mah-ads/build.gradle +++ b/MAHAds/mah-ads/build.gradle @@ -13,7 +13,7 @@ ext { siteUrl = 'https://github.com/hummatli/MAHAds' gitUrl = 'https://github.com/hummatli/MAHAds.git' - libraryVersion = '2.0.2' + libraryVersion = '2.0.3' developerId = 'hummatli' developerName = 'Sattar Hummatli'