2014-03-25 00:25:32 +00:00
|
|
|
/*
|
|
|
|
* This is the source code of Telegram for Android v. 1.3.x.
|
|
|
|
* It is licensed under GNU GPL v. 2 or later.
|
|
|
|
* You should have received a copy of the license in this archive (see LICENSE).
|
|
|
|
*
|
|
|
|
* Copyright Nikolai Kudashov, 2013-2014.
|
|
|
|
*/
|
|
|
|
|
|
|
|
package org.telegram.ui;
|
|
|
|
|
2014-04-02 17:36:57 +00:00
|
|
|
import android.app.AlertDialog;
|
2014-03-25 00:25:32 +00:00
|
|
|
import android.content.Context;
|
2014-04-02 17:36:57 +00:00
|
|
|
import android.content.DialogInterface;
|
2014-11-13 20:10:14 +00:00
|
|
|
import android.view.Gravity;
|
2014-03-25 00:25:32 +00:00
|
|
|
import android.view.LayoutInflater;
|
2014-10-07 20:14:27 +00:00
|
|
|
import android.view.MotionEvent;
|
2014-03-25 00:25:32 +00:00
|
|
|
import android.view.View;
|
|
|
|
import android.view.ViewGroup;
|
2014-05-24 22:47:05 +00:00
|
|
|
import android.widget.AbsListView;
|
2014-03-25 00:25:32 +00:00
|
|
|
import android.widget.AdapterView;
|
2014-06-03 23:31:48 +00:00
|
|
|
import android.widget.EditText;
|
2014-11-13 20:10:14 +00:00
|
|
|
import android.widget.FrameLayout;
|
2014-11-17 02:44:57 +00:00
|
|
|
import android.widget.LinearLayout;
|
2014-03-25 00:25:32 +00:00
|
|
|
import android.widget.ListView;
|
|
|
|
import android.widget.TextView;
|
|
|
|
|
2014-07-02 22:39:05 +00:00
|
|
|
import org.telegram.android.AndroidUtilities;
|
2014-03-25 00:25:32 +00:00
|
|
|
import org.telegram.messenger.FileLog;
|
2014-07-02 22:39:05 +00:00
|
|
|
import org.telegram.android.LocaleController;
|
2014-03-25 00:25:32 +00:00
|
|
|
import org.telegram.messenger.R;
|
|
|
|
import org.telegram.messenger.Utilities;
|
2014-06-20 00:18:13 +00:00
|
|
|
import org.telegram.ui.Adapters.BaseFragmentAdapter;
|
2014-11-13 20:10:14 +00:00
|
|
|
import org.telegram.ui.Cells.TextSettingsCell;
|
|
|
|
import org.telegram.ui.ActionBar.ActionBar;
|
|
|
|
import org.telegram.ui.ActionBar.ActionBarMenu;
|
|
|
|
import org.telegram.ui.ActionBar.ActionBarMenuItem;
|
|
|
|
import org.telegram.ui.ActionBar.BaseFragment;
|
2014-03-25 00:25:32 +00:00
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.Timer;
|
|
|
|
import java.util.TimerTask;
|
|
|
|
|
|
|
|
public class LanguageSelectActivity extends BaseFragment {
|
2014-06-20 00:18:13 +00:00
|
|
|
private BaseFragmentAdapter listAdapter;
|
2014-03-25 00:25:32 +00:00
|
|
|
private ListView listView;
|
|
|
|
private boolean searchWas;
|
|
|
|
private boolean searching;
|
2014-06-20 00:18:13 +00:00
|
|
|
private BaseFragmentAdapter searchListViewAdapter;
|
2014-03-25 00:25:32 +00:00
|
|
|
private TextView emptyTextView;
|
|
|
|
|
|
|
|
private Timer searchTimer;
|
|
|
|
public ArrayList<LocaleController.LocaleInfo> searchResult;
|
|
|
|
|
|
|
|
@Override
|
2014-06-03 23:31:48 +00:00
|
|
|
public View createView(LayoutInflater inflater, ViewGroup container) {
|
|
|
|
if (fragmentView == null) {
|
2014-11-13 20:10:14 +00:00
|
|
|
searching = false;
|
|
|
|
searchWas = false;
|
|
|
|
|
2014-11-11 22:16:17 +00:00
|
|
|
actionBar.setBackButtonImage(R.drawable.ic_ab_back);
|
2014-11-18 05:01:04 +00:00
|
|
|
actionBar.setAllowOverlayTitle(true);
|
2014-11-11 22:16:17 +00:00
|
|
|
actionBar.setTitle(LocaleController.getString("Language", R.string.Language));
|
2014-03-25 00:25:32 +00:00
|
|
|
|
2014-11-11 22:16:17 +00:00
|
|
|
actionBar.setActionBarMenuOnItemClick(new ActionBar.ActionBarMenuOnItemClick() {
|
2014-06-03 23:31:48 +00:00
|
|
|
@Override
|
|
|
|
public void onItemClick(int id) {
|
|
|
|
if (id == -1) {
|
|
|
|
finishFragment();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
2014-03-25 00:25:32 +00:00
|
|
|
|
2014-11-11 22:16:17 +00:00
|
|
|
ActionBarMenu menu = actionBar.createMenu();
|
2015-01-02 22:15:07 +00:00
|
|
|
ActionBarMenuItem item = menu.addItem(0, R.drawable.ic_ab_search).setIsSearchField(true).setActionBarMenuItemSearchListener(new ActionBarMenuItem.ActionBarMenuItemSearchListener() {
|
2014-06-03 23:31:48 +00:00
|
|
|
@Override
|
|
|
|
public void onSearchExpand() {
|
|
|
|
searching = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void onSearchCollapse() {
|
|
|
|
search(null);
|
|
|
|
searching = false;
|
|
|
|
searchWas = false;
|
|
|
|
if (listView != null) {
|
|
|
|
emptyTextView.setVisibility(View.GONE);
|
|
|
|
listView.setAdapter(listAdapter);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void onTextChanged(EditText editText) {
|
|
|
|
String text = editText.getText().toString();
|
|
|
|
search(text);
|
|
|
|
if (text.length() != 0) {
|
|
|
|
searchWas = true;
|
|
|
|
if (listView != null) {
|
|
|
|
listView.setAdapter(searchListViewAdapter);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
2015-01-02 22:15:07 +00:00
|
|
|
item.getSearchField().setHint(LocaleController.getString("Search", R.string.Search));
|
2014-03-25 00:25:32 +00:00
|
|
|
|
2014-06-03 23:31:48 +00:00
|
|
|
listAdapter = new ListAdapter(getParentActivity());
|
2014-11-13 20:10:14 +00:00
|
|
|
searchListViewAdapter = new SearchAdapter(getParentActivity());
|
|
|
|
|
|
|
|
fragmentView = new FrameLayout(getParentActivity());
|
|
|
|
|
2014-11-17 02:44:57 +00:00
|
|
|
LinearLayout emptyTextLayout = new LinearLayout(getParentActivity());
|
|
|
|
emptyTextLayout.setVisibility(View.INVISIBLE);
|
|
|
|
emptyTextLayout.setOrientation(LinearLayout.VERTICAL);
|
|
|
|
((FrameLayout) fragmentView).addView(emptyTextLayout);
|
|
|
|
FrameLayout.LayoutParams layoutParams = (FrameLayout.LayoutParams) emptyTextLayout.getLayoutParams();
|
2014-11-13 20:10:14 +00:00
|
|
|
layoutParams.width = FrameLayout.LayoutParams.MATCH_PARENT;
|
|
|
|
layoutParams.height = FrameLayout.LayoutParams.MATCH_PARENT;
|
|
|
|
layoutParams.gravity = Gravity.TOP;
|
2014-11-17 02:44:57 +00:00
|
|
|
emptyTextLayout.setLayoutParams(layoutParams);
|
|
|
|
emptyTextLayout.setOnTouchListener(new View.OnTouchListener() {
|
2014-10-07 20:14:27 +00:00
|
|
|
@Override
|
|
|
|
public boolean onTouch(View v, MotionEvent event) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
});
|
2014-11-13 20:10:14 +00:00
|
|
|
|
2014-11-17 02:44:57 +00:00
|
|
|
emptyTextView = new TextView(getParentActivity());
|
|
|
|
emptyTextView.setTextColor(0xff808080);
|
|
|
|
emptyTextView.setTextSize(20);
|
|
|
|
emptyTextView.setGravity(Gravity.CENTER);
|
|
|
|
emptyTextView.setText(LocaleController.getString("NoResult", R.string.NoResult));
|
|
|
|
emptyTextLayout.addView(emptyTextView);
|
|
|
|
LinearLayout.LayoutParams layoutParams1 = (LinearLayout.LayoutParams) emptyTextView.getLayoutParams();
|
|
|
|
layoutParams1.width = LinearLayout.LayoutParams.MATCH_PARENT;
|
|
|
|
layoutParams1.height = LinearLayout.LayoutParams.MATCH_PARENT;
|
|
|
|
layoutParams1.weight = 0.5f;
|
|
|
|
emptyTextView.setLayoutParams(layoutParams1);
|
|
|
|
|
|
|
|
FrameLayout frameLayout = new FrameLayout(getParentActivity());
|
|
|
|
emptyTextLayout.addView(frameLayout);
|
|
|
|
layoutParams1 = (LinearLayout.LayoutParams) frameLayout.getLayoutParams();
|
|
|
|
layoutParams1.width = LinearLayout.LayoutParams.MATCH_PARENT;
|
|
|
|
layoutParams1.height = LinearLayout.LayoutParams.MATCH_PARENT;
|
|
|
|
layoutParams1.weight = 0.5f;
|
|
|
|
frameLayout.setLayoutParams(layoutParams1);
|
|
|
|
|
2014-11-13 20:10:14 +00:00
|
|
|
listView = new ListView(getParentActivity());
|
2014-11-17 02:44:57 +00:00
|
|
|
listView.setEmptyView(emptyTextLayout);
|
2014-11-13 20:10:14 +00:00
|
|
|
listView.setVerticalScrollBarEnabled(false);
|
|
|
|
listView.setDivider(null);
|
|
|
|
listView.setDividerHeight(0);
|
|
|
|
listView.setAdapter(listAdapter);
|
|
|
|
((FrameLayout) fragmentView).addView(listView);
|
|
|
|
layoutParams = (FrameLayout.LayoutParams) listView.getLayoutParams();
|
|
|
|
layoutParams.width = FrameLayout.LayoutParams.MATCH_PARENT;
|
|
|
|
layoutParams.height = FrameLayout.LayoutParams.MATCH_PARENT;
|
|
|
|
listView.setLayoutParams(layoutParams);
|
2014-03-25 00:25:32 +00:00
|
|
|
|
|
|
|
listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
|
|
|
|
@Override
|
|
|
|
public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {
|
|
|
|
LocaleController.LocaleInfo localeInfo = null;
|
|
|
|
if (searching && searchWas) {
|
|
|
|
if (i >= 0 && i < searchResult.size()) {
|
|
|
|
localeInfo = searchResult.get(i);
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
if (i >= 0 && i < LocaleController.getInstance().sortedLanguages.size()) {
|
|
|
|
localeInfo = LocaleController.getInstance().sortedLanguages.get(i);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (localeInfo != null) {
|
|
|
|
LocaleController.getInstance().applyLanguage(localeInfo, true);
|
2014-09-24 02:17:27 +00:00
|
|
|
parentLayout.rebuildAllFragmentViews(false);
|
2014-04-02 17:36:57 +00:00
|
|
|
}
|
2014-03-25 00:25:32 +00:00
|
|
|
finishFragment();
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2014-04-02 17:36:57 +00:00
|
|
|
listView.setOnItemLongClickListener(new AdapterView.OnItemLongClickListener() {
|
|
|
|
@Override
|
|
|
|
public boolean onItemLongClick(AdapterView<?> adapterView, View view, int i, long l) {
|
|
|
|
LocaleController.LocaleInfo localeInfo = null;
|
|
|
|
if (searching && searchWas) {
|
|
|
|
if (i >= 0 && i < searchResult.size()) {
|
|
|
|
localeInfo = searchResult.get(i);
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
if (i >= 0 && i < LocaleController.getInstance().sortedLanguages.size()) {
|
|
|
|
localeInfo = LocaleController.getInstance().sortedLanguages.get(i);
|
|
|
|
}
|
|
|
|
}
|
2014-06-14 08:36:01 +00:00
|
|
|
if (localeInfo == null || localeInfo.pathToFile == null || getParentActivity() == null) {
|
2014-04-02 17:36:57 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
final LocaleController.LocaleInfo finalLocaleInfo = localeInfo;
|
2014-06-03 23:31:48 +00:00
|
|
|
AlertDialog.Builder builder = new AlertDialog.Builder(getParentActivity());
|
2014-04-02 17:36:57 +00:00
|
|
|
builder.setMessage(LocaleController.getString("DeleteLocalization", R.string.DeleteLocalization));
|
|
|
|
builder.setTitle(LocaleController.getString("AppName", R.string.AppName));
|
|
|
|
builder.setPositiveButton(LocaleController.getString("Delete", R.string.Delete), new DialogInterface.OnClickListener() {
|
|
|
|
@Override
|
|
|
|
public void onClick(DialogInterface dialogInterface, int i) {
|
|
|
|
if (LocaleController.getInstance().deleteLanguage(finalLocaleInfo)) {
|
|
|
|
if (searchResult != null) {
|
|
|
|
searchResult.remove(finalLocaleInfo);
|
|
|
|
}
|
|
|
|
if (listAdapter != null) {
|
|
|
|
listAdapter.notifyDataSetChanged();
|
|
|
|
}
|
|
|
|
if (searchListViewAdapter != null) {
|
|
|
|
searchListViewAdapter.notifyDataSetChanged();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
builder.setNegativeButton(LocaleController.getString("Cancel", R.string.Cancel), null);
|
2014-06-06 23:35:21 +00:00
|
|
|
showAlertDialog(builder);
|
2014-04-02 17:36:57 +00:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2014-05-24 22:47:05 +00:00
|
|
|
listView.setOnScrollListener(new AbsListView.OnScrollListener() {
|
|
|
|
@Override
|
|
|
|
public void onScrollStateChanged(AbsListView absListView, int i) {
|
|
|
|
if (i == SCROLL_STATE_TOUCH_SCROLL && searching && searchWas) {
|
2014-07-02 22:39:05 +00:00
|
|
|
AndroidUtilities.hideKeyboard(getParentActivity().getCurrentFocus());
|
2014-05-24 22:47:05 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void onScroll(AbsListView absListView, int firstVisibleItem, int visibleItemCount, int totalItemCount) {
|
|
|
|
}
|
|
|
|
});
|
2014-03-25 00:25:32 +00:00
|
|
|
} else {
|
|
|
|
ViewGroup parent = (ViewGroup)fragmentView.getParent();
|
|
|
|
if (parent != null) {
|
|
|
|
parent.removeView(fragmentView);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return fragmentView;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void onResume() {
|
2014-06-04 16:00:42 +00:00
|
|
|
super.onResume();
|
2014-06-03 23:31:48 +00:00
|
|
|
if (listAdapter != null) {
|
2014-03-25 00:25:32 +00:00
|
|
|
listAdapter.notifyDataSetChanged();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public void search(final String query) {
|
|
|
|
if (query == null) {
|
|
|
|
searchResult = null;
|
|
|
|
} else {
|
|
|
|
try {
|
|
|
|
if (searchTimer != null) {
|
|
|
|
searchTimer.cancel();
|
|
|
|
}
|
|
|
|
} catch (Exception e) {
|
|
|
|
FileLog.e("tmessages", e);
|
|
|
|
}
|
|
|
|
searchTimer = new Timer();
|
|
|
|
searchTimer.schedule(new TimerTask() {
|
|
|
|
@Override
|
|
|
|
public void run() {
|
|
|
|
try {
|
|
|
|
searchTimer.cancel();
|
|
|
|
searchTimer = null;
|
|
|
|
} catch (Exception e) {
|
|
|
|
FileLog.e("tmessages", e);
|
|
|
|
}
|
|
|
|
processSearch(query);
|
|
|
|
}
|
|
|
|
}, 100, 300);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
private void processSearch(final String query) {
|
2014-06-13 10:42:21 +00:00
|
|
|
Utilities.searchQueue.postRunnable(new Runnable() {
|
2014-03-25 00:25:32 +00:00
|
|
|
@Override
|
|
|
|
public void run() {
|
|
|
|
|
|
|
|
String q = query.trim().toLowerCase();
|
|
|
|
if (q.length() == 0) {
|
|
|
|
updateSearchResults(new ArrayList<LocaleController.LocaleInfo>());
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
long time = System.currentTimeMillis();
|
|
|
|
ArrayList<LocaleController.LocaleInfo> resultArray = new ArrayList<LocaleController.LocaleInfo>();
|
|
|
|
|
|
|
|
for (LocaleController.LocaleInfo c : LocaleController.getInstance().sortedLanguages) {
|
|
|
|
if (c.name.toLowerCase().startsWith(query) || c.nameEnglish.toLowerCase().startsWith(query)) {
|
|
|
|
resultArray.add(c);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
updateSearchResults(resultArray);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
private void updateSearchResults(final ArrayList<LocaleController.LocaleInfo> arrCounties) {
|
2014-11-06 21:34:47 +00:00
|
|
|
AndroidUtilities.runOnUIThread(new Runnable() {
|
2014-03-25 00:25:32 +00:00
|
|
|
@Override
|
|
|
|
public void run() {
|
|
|
|
searchResult = arrCounties;
|
|
|
|
searchListViewAdapter.notifyDataSetChanged();
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2014-06-20 00:18:13 +00:00
|
|
|
private class SearchAdapter extends BaseFragmentAdapter {
|
2014-03-25 00:25:32 +00:00
|
|
|
private Context mContext;
|
|
|
|
|
|
|
|
public SearchAdapter(Context context) {
|
|
|
|
mContext = context;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean areAllItemsEnabled() {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean isEnabled(int i) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public int getCount() {
|
|
|
|
if (searchResult == null) {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
return searchResult.size();
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public Object getItem(int i) {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public long getItemId(int i) {
|
|
|
|
return i;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean hasStableIds() {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public View getView(int i, View view, ViewGroup viewGroup) {
|
|
|
|
if (view == null) {
|
2014-11-13 20:10:14 +00:00
|
|
|
view = new TextSettingsCell(mContext);
|
2014-03-25 00:25:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
LocaleController.LocaleInfo c = searchResult.get(i);
|
2014-11-13 20:10:14 +00:00
|
|
|
((TextSettingsCell) view).setText(c.name, i != searchResult.size() - 1);
|
2014-03-25 00:25:32 +00:00
|
|
|
|
|
|
|
return view;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public int getItemViewType(int i) {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public int getViewTypeCount() {
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean isEmpty() {
|
|
|
|
return searchResult == null || searchResult.size() == 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-06-20 00:18:13 +00:00
|
|
|
private class ListAdapter extends BaseFragmentAdapter {
|
2014-03-25 00:25:32 +00:00
|
|
|
private Context mContext;
|
|
|
|
|
|
|
|
public ListAdapter(Context context) {
|
|
|
|
mContext = context;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean areAllItemsEnabled() {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean isEnabled(int i) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public int getCount() {
|
|
|
|
if (LocaleController.getInstance().sortedLanguages == null) {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
return LocaleController.getInstance().sortedLanguages.size();
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public Object getItem(int i) {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public long getItemId(int i) {
|
|
|
|
return i;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean hasStableIds() {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public View getView(int i, View view, ViewGroup viewGroup) {
|
|
|
|
if (view == null) {
|
2014-11-13 20:10:14 +00:00
|
|
|
view = new TextSettingsCell(mContext);
|
2014-03-25 00:25:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
LocaleController.LocaleInfo localeInfo = LocaleController.getInstance().sortedLanguages.get(i);
|
2014-11-13 20:10:14 +00:00
|
|
|
((TextSettingsCell) view).setText(localeInfo.name, i != LocaleController.getInstance().sortedLanguages.size() - 1);
|
2014-03-25 00:25:32 +00:00
|
|
|
|
|
|
|
return view;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public int getItemViewType(int i) {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public int getViewTypeCount() {
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean isEmpty() {
|
|
|
|
return LocaleController.getInstance().sortedLanguages == null || LocaleController.getInstance().sortedLanguages.size() == 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|