Skip to content
This repository has been archived by the owner on Mar 27, 2020. It is now read-only.

Commit

Permalink
Merge commit '6b177291b03d01ad68ffa4a0fb3c8adf64db5d1c' into HEAD
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins committed Apr 24, 2014
2 parents fa26788 + 6b17729 commit 656f89a
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,17 @@ public View getView(final int position, View convertView, ViewGroup parent) {
public void onClick(View v) {
String url = null;
selectedLang = item.getLanguage();

if (currentLang.equals(selectedLang)) {
((Activity) mContext).finish();
AppUtil.showToast("Language already applied.", Toast.LENGTH_SHORT, mContext);
AppUtil.showToast("Language already applied.", Toast.LENGTH_SHORT, mContext);
return;
} else if (!AppUtil.hasInternet(mContext)) {
changeStaticLanguageSettings();
return;
}
new GetLatestVersion().execute();

}
});

Expand Down

0 comments on commit 656f89a

Please sign in to comment.