NekoX/TMessagesProj/src/main/java/org/telegram/ui/ContactAddActivity.java

371 lines
19 KiB
Java
Raw Normal View History

2013-10-25 17:19:00 +02:00
/*
2019-01-23 18:03:33 +01:00
* This is the source code of Telegram for Android v. 5.x.x.
2013-10-25 17:19:00 +02:00
* It is licensed under GNU GPL v. 2 or later.
* You should have received a copy of the license in this archive (see LICENSE).
*
2019-01-23 18:03:33 +01:00
* Copyright Nikolai Kudashov, 2013-2018.
2013-10-25 17:19:00 +02:00
*/
package org.telegram.ui;
2015-04-09 20:00:14 +02:00
import android.content.Context;
2013-10-25 17:19:00 +02:00
import android.content.SharedPreferences;
import android.os.Bundle;
2014-11-17 03:44:57 +01:00
import android.text.InputType;
import android.text.TextUtils;
import android.util.TypedValue;
import android.view.Gravity;
2013-10-25 17:19:00 +02:00
import android.view.View;
import android.view.inputmethod.EditorInfo;
2014-11-17 03:44:57 +01:00
import android.widget.FrameLayout;
import android.widget.LinearLayout;
import android.widget.ScrollView;
2013-10-25 17:19:00 +02:00
import android.widget.TextView;
2015-09-24 22:52:02 +02:00
import org.telegram.messenger.AndroidUtilities;
2013-10-25 17:19:00 +02:00
import org.telegram.PhoneFormat.PhoneFormat;
2019-07-18 15:01:39 +02:00
import org.telegram.messenger.FileLog;
2019-05-14 14:08:05 +02:00
import org.telegram.messenger.ImageLocation;
2015-09-24 22:52:02 +02:00
import org.telegram.messenger.LocaleController;
2019-07-18 15:01:39 +02:00
import org.telegram.messenger.UserObject;
2015-09-24 22:52:02 +02:00
import org.telegram.tgnet.TLRPC;
import org.telegram.messenger.MessagesController;
import org.telegram.messenger.NotificationCenter;
2013-10-25 17:19:00 +02:00
import org.telegram.messenger.R;
2014-11-13 21:10:14 +01:00
import org.telegram.ui.ActionBar.ActionBar;
import org.telegram.ui.ActionBar.ActionBarMenu;
2017-03-31 01:58:05 +02:00
import org.telegram.ui.ActionBar.Theme;
import org.telegram.ui.ActionBar.ThemeDescription;
2019-07-18 15:01:39 +02:00
import org.telegram.ui.Cells.CheckBoxCell;
import org.telegram.ui.Components.AvatarDrawable;
import org.telegram.ui.Components.BackupImageView;
2014-11-13 21:10:14 +01:00
import org.telegram.ui.ActionBar.BaseFragment;
2017-12-08 18:35:59 +01:00
import org.telegram.ui.Components.EditTextBoldCursor;
import org.telegram.ui.Components.LayoutHelper;
2013-10-25 17:19:00 +02:00
2020-04-24 11:21:58 +02:00
import java.util.ArrayList;
2013-10-25 17:19:00 +02:00
public class ContactAddActivity extends BaseFragment implements NotificationCenter.NotificationCenterDelegate {
2014-11-13 21:10:14 +01:00
2013-10-25 17:19:00 +02:00
private View doneButton;
2017-12-08 18:35:59 +01:00
private EditTextBoldCursor firstNameField;
private EditTextBoldCursor lastNameField;
2013-10-25 17:19:00 +02:00
private BackupImageView avatarImage;
2014-11-17 03:44:57 +01:00
private TextView nameTextView;
private TextView onlineTextView;
2017-03-31 01:58:05 +02:00
private AvatarDrawable avatarDrawable;
2019-07-18 15:01:39 +02:00
private TextView infoTextView;
private CheckBoxCell checkBoxCell;
2013-10-25 17:19:00 +02:00
2021-09-20 07:54:41 +02:00
private long user_id;
2014-11-13 21:10:14 +01:00
private boolean addContact;
2019-07-18 15:01:39 +02:00
private boolean needAddException;
private String phone;
private ContactAddActivityDelegate delegate;
2014-11-13 21:10:14 +01:00
private final static int done_button = 1;
2019-07-18 15:01:39 +02:00
public interface ContactAddActivityDelegate {
void didAddToContacts();
}
public ContactAddActivity(Bundle args) {
super(args);
}
2013-10-25 17:19:00 +02:00
@Override
public boolean onFragmentCreate() {
2019-07-18 15:01:39 +02:00
getNotificationCenter().addObserver(this, NotificationCenter.updateInterfaces);
2021-09-20 07:54:41 +02:00
user_id = getArguments().getLong("user_id", 0);
2013-12-20 20:25:49 +01:00
phone = getArguments().getString("phone");
2014-11-13 21:10:14 +01:00
addContact = getArguments().getBoolean("addContact", false);
2019-07-18 15:01:39 +02:00
needAddException = MessagesController.getNotificationsSettings(currentAccount).getBoolean("dialog_bar_exception" + user_id, false);
2021-11-15 13:52:32 +01:00
TLRPC.User user = null;
if (user_id != 0) {
user = getMessagesController().getUser(user_id);
}
return user != null && super.onFragmentCreate();
2013-10-25 17:19:00 +02:00
}
@Override
public void onFragmentDestroy() {
super.onFragmentDestroy();
2019-07-18 15:01:39 +02:00
getNotificationCenter().removeObserver(this, NotificationCenter.updateInterfaces);
2013-10-25 17:19:00 +02:00
}
@Override
2015-07-22 20:56:37 +02:00
public View createView(Context context) {
2015-04-09 20:00:14 +02:00
actionBar.setBackButtonImage(R.drawable.ic_ab_back);
actionBar.setAllowOverlayTitle(true);
if (addContact) {
2019-07-18 15:01:39 +02:00
actionBar.setTitle(LocaleController.getString("NewContact", R.string.NewContact));
2015-04-09 20:00:14 +02:00
} else {
actionBar.setTitle(LocaleController.getString("EditName", R.string.EditName));
}
actionBar.setActionBarMenuOnItemClick(new ActionBar.ActionBarMenuOnItemClick() {
@Override
public void onItemClick(int id) {
if (id == -1) {
finishFragment();
} else if (id == done_button) {
if (firstNameField.getText().length() != 0) {
2019-07-18 15:01:39 +02:00
TLRPC.User user = getMessagesController().getUser(user_id);
2015-04-09 20:00:14 +02:00
user.first_name = firstNameField.getText().toString();
user.last_name = lastNameField.getText().toString();
2019-07-18 15:01:39 +02:00
getContactsController().addContact(user, checkBoxCell != null && checkBoxCell.isChecked());
2018-07-30 04:07:02 +02:00
SharedPreferences preferences = MessagesController.getNotificationsSettings(currentAccount);
2019-07-18 15:01:39 +02:00
preferences.edit().putInt("dialog_bar_vis3" + user_id, 3).commit();
getNotificationCenter().postNotificationName(NotificationCenter.updateInterfaces, MessagesController.UPDATE_MASK_NAME);
2021-09-20 07:54:41 +02:00
getNotificationCenter().postNotificationName(NotificationCenter.peerSettingsDidLoad, user_id);
2019-07-18 15:01:39 +02:00
finishFragment();
if (delegate != null) {
delegate.didAddToContacts();
}
}
}
2015-04-09 20:00:14 +02:00
}
});
2015-04-09 20:00:14 +02:00
ActionBarMenu menu = actionBar.createMenu();
2019-07-18 15:01:39 +02:00
doneButton = menu.addItem(done_button, LocaleController.getString("Done", R.string.Done).toUpperCase());
2014-11-17 03:44:57 +01:00
2015-04-09 20:00:14 +02:00
fragmentView = new ScrollView(context);
2013-10-25 17:19:00 +02:00
2015-04-09 20:00:14 +02:00
LinearLayout linearLayout = new LinearLayout(context);
linearLayout.setOrientation(LinearLayout.VERTICAL);
2017-03-31 01:58:05 +02:00
((ScrollView) fragmentView).addView(linearLayout, LayoutHelper.createScroll(LayoutHelper.MATCH_PARENT, LayoutHelper.WRAP_CONTENT, Gravity.TOP | Gravity.LEFT));
2019-01-23 18:03:33 +01:00
linearLayout.setOnTouchListener((v, event) -> true);
2014-11-17 03:44:57 +01:00
2015-04-09 20:00:14 +02:00
FrameLayout frameLayout = new FrameLayout(context);
2017-03-31 01:58:05 +02:00
linearLayout.addView(frameLayout, LayoutHelper.createLinear(LayoutHelper.MATCH_PARENT, LayoutHelper.WRAP_CONTENT, 24, 24, 24, 0));
2014-11-17 03:44:57 +01:00
2015-04-09 20:00:14 +02:00
avatarImage = new BackupImageView(context);
avatarImage.setRoundRadius(AndroidUtilities.dp(30));
2017-03-31 01:58:05 +02:00
frameLayout.addView(avatarImage, LayoutHelper.createFrame(60, 60, (LocaleController.isRTL ? Gravity.RIGHT : Gravity.LEFT) | Gravity.TOP));
2013-10-25 17:19:00 +02:00
2015-04-09 20:00:14 +02:00
nameTextView = new TextView(context);
2017-03-31 01:58:05 +02:00
nameTextView.setTextColor(Theme.getColor(Theme.key_windowBackgroundWhiteBlackText));
2015-04-09 20:00:14 +02:00
nameTextView.setTextSize(TypedValue.COMPLEX_UNIT_DIP, 20);
nameTextView.setLines(1);
nameTextView.setMaxLines(1);
nameTextView.setSingleLine(true);
nameTextView.setEllipsize(TextUtils.TruncateAt.END);
nameTextView.setGravity((LocaleController.isRTL ? Gravity.RIGHT : Gravity.LEFT));
nameTextView.setTypeface(AndroidUtilities.getTypeface("fonts/rmedium.ttf"));
2017-03-31 01:58:05 +02:00
frameLayout.addView(nameTextView, LayoutHelper.createFrame(LayoutHelper.WRAP_CONTENT, LayoutHelper.WRAP_CONTENT, (LocaleController.isRTL ? Gravity.RIGHT : Gravity.LEFT) | Gravity.TOP, LocaleController.isRTL ? 0 : 80, 3, LocaleController.isRTL ? 80 : 0, 0));
2014-11-17 03:44:57 +01:00
2015-04-09 20:00:14 +02:00
onlineTextView = new TextView(context);
2017-03-31 01:58:05 +02:00
onlineTextView.setTextColor(Theme.getColor(Theme.key_windowBackgroundWhiteGrayText3));
2015-04-09 20:00:14 +02:00
onlineTextView.setTextSize(TypedValue.COMPLEX_UNIT_DIP, 14);
onlineTextView.setLines(1);
onlineTextView.setMaxLines(1);
onlineTextView.setSingleLine(true);
onlineTextView.setEllipsize(TextUtils.TruncateAt.END);
onlineTextView.setGravity((LocaleController.isRTL ? Gravity.RIGHT : Gravity.LEFT));
2017-03-31 01:58:05 +02:00
frameLayout.addView(onlineTextView, LayoutHelper.createFrame(LayoutHelper.WRAP_CONTENT, LayoutHelper.WRAP_CONTENT, (LocaleController.isRTL ? Gravity.RIGHT : Gravity.LEFT) | Gravity.TOP, LocaleController.isRTL ? 0 : 80, 32, LocaleController.isRTL ? 80 : 0, 0));
2014-11-17 03:44:57 +01:00
2017-12-08 18:35:59 +01:00
firstNameField = new EditTextBoldCursor(context);
2015-04-09 20:00:14 +02:00
firstNameField.setTextSize(TypedValue.COMPLEX_UNIT_DIP, 18);
2017-03-31 01:58:05 +02:00
firstNameField.setHintTextColor(Theme.getColor(Theme.key_windowBackgroundWhiteHintText));
firstNameField.setTextColor(Theme.getColor(Theme.key_windowBackgroundWhiteBlackText));
firstNameField.setBackgroundDrawable(Theme.createEditTextDrawable(context, false));
2015-04-09 20:00:14 +02:00
firstNameField.setMaxLines(1);
firstNameField.setLines(1);
firstNameField.setSingleLine(true);
firstNameField.setGravity(LocaleController.isRTL ? Gravity.RIGHT : Gravity.LEFT);
firstNameField.setInputType(InputType.TYPE_TEXT_FLAG_CAP_SENTENCES | InputType.TYPE_TEXT_FLAG_AUTO_CORRECT);
firstNameField.setImeOptions(EditorInfo.IME_ACTION_NEXT);
firstNameField.setHint(LocaleController.getString("FirstName", R.string.FirstName));
2017-12-08 18:35:59 +01:00
firstNameField.setCursorColor(Theme.getColor(Theme.key_windowBackgroundWhiteBlackText));
firstNameField.setCursorSize(AndroidUtilities.dp(20));
firstNameField.setCursorWidth(1.5f);
2017-03-31 01:58:05 +02:00
linearLayout.addView(firstNameField, LayoutHelper.createLinear(LayoutHelper.MATCH_PARENT, 36, 24, 24, 24, 0));
2019-01-23 18:03:33 +01:00
firstNameField.setOnEditorActionListener((textView, i, keyEvent) -> {
if (i == EditorInfo.IME_ACTION_NEXT) {
lastNameField.requestFocus();
lastNameField.setSelection(lastNameField.length());
return true;
2015-04-09 20:00:14 +02:00
}
2019-01-23 18:03:33 +01:00
return false;
2015-04-09 20:00:14 +02:00
});
2019-07-18 15:01:39 +02:00
firstNameField.setOnFocusChangeListener(new View.OnFocusChangeListener() {
boolean focued;
@Override
public void onFocusChange(View v, boolean hasFocus) {
if (!paused && !hasFocus && focued) {
FileLog.d("changed");
}
focued = hasFocus;
}
});
2013-10-25 17:19:00 +02:00
2017-12-08 18:35:59 +01:00
lastNameField = new EditTextBoldCursor(context);
2015-04-09 20:00:14 +02:00
lastNameField.setTextSize(TypedValue.COMPLEX_UNIT_DIP, 18);
2017-03-31 01:58:05 +02:00
lastNameField.setHintTextColor(Theme.getColor(Theme.key_windowBackgroundWhiteHintText));
lastNameField.setTextColor(Theme.getColor(Theme.key_windowBackgroundWhiteBlackText));
lastNameField.setBackgroundDrawable(Theme.createEditTextDrawable(context, false));
2015-04-09 20:00:14 +02:00
lastNameField.setMaxLines(1);
lastNameField.setLines(1);
lastNameField.setSingleLine(true);
lastNameField.setGravity(LocaleController.isRTL ? Gravity.RIGHT : Gravity.LEFT);
lastNameField.setInputType(InputType.TYPE_TEXT_FLAG_CAP_SENTENCES | InputType.TYPE_TEXT_FLAG_AUTO_CORRECT);
lastNameField.setImeOptions(EditorInfo.IME_ACTION_DONE);
lastNameField.setHint(LocaleController.getString("LastName", R.string.LastName));
2017-12-08 18:35:59 +01:00
lastNameField.setCursorColor(Theme.getColor(Theme.key_windowBackgroundWhiteBlackText));
lastNameField.setCursorSize(AndroidUtilities.dp(20));
lastNameField.setCursorWidth(1.5f);
2017-03-31 01:58:05 +02:00
linearLayout.addView(lastNameField, LayoutHelper.createLinear(LayoutHelper.MATCH_PARENT, 36, 24, 16, 24, 0));
2019-01-23 18:03:33 +01:00
lastNameField.setOnEditorActionListener((textView, i, keyEvent) -> {
if (i == EditorInfo.IME_ACTION_DONE) {
doneButton.performClick();
return true;
2013-10-25 17:19:00 +02:00
}
2019-01-23 18:03:33 +01:00
return false;
2015-04-09 20:00:14 +02:00
});
2013-10-25 17:19:00 +02:00
2019-07-18 15:01:39 +02:00
TLRPC.User user = getMessagesController().getUser(user_id);
2015-04-09 20:00:14 +02:00
if (user != null) {
if (user.phone == null) {
if (phone != null) {
user.phone = PhoneFormat.stripExceptNumbers(phone);
}
2013-10-25 17:19:00 +02:00
}
2015-04-09 20:00:14 +02:00
firstNameField.setText(user.first_name);
firstNameField.setSelection(firstNameField.length());
lastNameField.setText(user.last_name);
2013-10-25 17:19:00 +02:00
}
2015-04-09 20:00:14 +02:00
2019-07-18 15:01:39 +02:00
infoTextView = new TextView(context);
infoTextView.setTextColor(Theme.getColor(Theme.key_windowBackgroundWhiteGrayText4));
infoTextView.setTextSize(TypedValue.COMPLEX_UNIT_DIP, 14);
infoTextView.setGravity(LocaleController.isRTL ? Gravity.RIGHT : Gravity.LEFT);
if (addContact) {
if (!needAddException || TextUtils.isEmpty(user.phone)) {
linearLayout.addView(infoTextView, LayoutHelper.createLinear(LayoutHelper.MATCH_PARENT, LayoutHelper.WRAP_CONTENT, 24, 18, 24, 0));
}
if (needAddException) {
checkBoxCell = new CheckBoxCell(getParentActivity(), 0);
checkBoxCell.setBackgroundDrawable(Theme.getSelectorDrawable(false));
checkBoxCell.setText(LocaleController.formatString("SharePhoneNumberWith", R.string.SharePhoneNumberWith, UserObject.getFirstName(user)), "", true, false);
checkBoxCell.setPadding(AndroidUtilities.dp(7), 0, AndroidUtilities.dp(7), 0);
checkBoxCell.setOnClickListener(v -> checkBoxCell.setChecked(!checkBoxCell.isChecked(), true));
linearLayout.addView(checkBoxCell, LayoutHelper.createLinear(LayoutHelper.MATCH_PARENT, LayoutHelper.WRAP_CONTENT, 0, 10, 0, 0));
}
}
2013-10-25 17:19:00 +02:00
return fragmentView;
}
2019-07-18 15:01:39 +02:00
public void setDelegate(ContactAddActivityDelegate contactAddActivityDelegate) {
delegate = contactAddActivityDelegate;
}
2013-10-25 17:19:00 +02:00
private void updateAvatarLayout() {
2014-11-17 03:44:57 +01:00
if (nameTextView == null) {
2013-10-25 17:19:00 +02:00
return;
}
2019-07-18 15:01:39 +02:00
TLRPC.User user = getMessagesController().getUser(user_id);
2013-10-25 17:19:00 +02:00
if (user == null) {
return;
}
2019-07-18 15:01:39 +02:00
if (TextUtils.isEmpty(user.phone)) {
nameTextView.setText(LocaleController.getString("MobileHidden", R.string.MobileHidden));
infoTextView.setText(AndroidUtilities.replaceTags(LocaleController.formatString("MobileHiddenExceptionInfo", R.string.MobileHiddenExceptionInfo, UserObject.getFirstName(user))));
} else {
nameTextView.setText(PhoneFormat.getInstance().format("+" + user.phone));
if (needAddException) {
infoTextView.setText(AndroidUtilities.replaceTags(LocaleController.formatString("MobileVisibleInfo", R.string.MobileVisibleInfo, UserObject.getFirstName(user))));
}
}
2018-07-30 04:07:02 +02:00
onlineTextView.setText(LocaleController.formatUserStatus(currentAccount, user));
2021-04-17 01:59:59 +02:00
avatarImage.setForUserOrChat(user, avatarDrawable = new AvatarDrawable(user));
2013-10-25 17:19:00 +02:00
}
2018-07-30 04:07:02 +02:00
public void didReceivedNotification(int id, int account, Object... args) {
if (id == NotificationCenter.updateInterfaces) {
2014-11-17 03:44:57 +01:00
int mask = (Integer) args[0];
if ((mask & MessagesController.UPDATE_MASK_AVATAR) != 0 || (mask & MessagesController.UPDATE_MASK_STATUS) != 0) {
updateAvatarLayout();
}
2013-10-25 17:19:00 +02:00
}
}
2019-07-18 15:01:39 +02:00
boolean paused;
@Override
public void onPause() {
super.onPause();
paused = true;
}
2013-10-25 17:19:00 +02:00
@Override
public void onResume() {
super.onResume();
2015-04-09 20:00:14 +02:00
updateAvatarLayout();
2019-07-18 15:01:39 +02:00
if (firstNameField != null) {
2013-10-25 17:19:00 +02:00
firstNameField.requestFocus();
2019-07-18 15:01:39 +02:00
SharedPreferences preferences = MessagesController.getGlobalMainSettings();
boolean animations = preferences.getBoolean("view_animations", true);
if (!animations) {
AndroidUtilities.showKeyboard(firstNameField);
}
2013-10-25 17:19:00 +02:00
}
}
@Override
2015-10-29 18:10:07 +01:00
public void onTransitionAnimationEnd(boolean isOpen, boolean backward) {
if (isOpen) {
firstNameField.requestFocus();
AndroidUtilities.showKeyboard(firstNameField);
}
2013-10-25 17:19:00 +02:00
}
2017-03-31 01:58:05 +02:00
@Override
2020-04-24 11:21:58 +02:00
public ArrayList<ThemeDescription> getThemeDescriptions() {
ArrayList<ThemeDescription> themeDescriptions = new ArrayList<>();
2019-01-23 18:03:33 +01:00
ThemeDescription.ThemeDescriptionDelegate cellDelegate = () -> {
if (avatarImage != null) {
2019-07-18 15:01:39 +02:00
TLRPC.User user = getMessagesController().getUser(user_id);
2019-01-23 18:03:33 +01:00
if (user == null) {
return;
2017-03-31 01:58:05 +02:00
}
2019-01-23 18:03:33 +01:00
avatarDrawable.setInfo(user);
avatarImage.invalidate();
2017-03-31 01:58:05 +02:00
}
};
2020-04-24 11:21:58 +02:00
themeDescriptions.add(new ThemeDescription(fragmentView, ThemeDescription.FLAG_BACKGROUND, null, null, null, null, Theme.key_windowBackgroundWhite));
themeDescriptions.add(new ThemeDescription(actionBar, ThemeDescription.FLAG_BACKGROUND, null, null, null, null, Theme.key_actionBarDefault));
themeDescriptions.add(new ThemeDescription(actionBar, ThemeDescription.FLAG_AB_ITEMSCOLOR, null, null, null, null, Theme.key_actionBarDefaultIcon));
themeDescriptions.add(new ThemeDescription(actionBar, ThemeDescription.FLAG_AB_TITLECOLOR, null, null, null, null, Theme.key_actionBarDefaultTitle));
themeDescriptions.add(new ThemeDescription(actionBar, ThemeDescription.FLAG_AB_SELECTORCOLOR, null, null, null, null, Theme.key_actionBarDefaultSelector));
themeDescriptions.add(new ThemeDescription(nameTextView, ThemeDescription.FLAG_TEXTCOLOR, null, null, null, null, Theme.key_windowBackgroundWhiteBlackText));
themeDescriptions.add(new ThemeDescription(onlineTextView, ThemeDescription.FLAG_TEXTCOLOR, null, null, null, null, Theme.key_windowBackgroundWhiteGrayText3));
themeDescriptions.add(new ThemeDescription(firstNameField, ThemeDescription.FLAG_TEXTCOLOR, null, null, null, null, Theme.key_windowBackgroundWhiteBlackText));
themeDescriptions.add(new ThemeDescription(firstNameField, ThemeDescription.FLAG_HINTTEXTCOLOR, null, null, null, null, Theme.key_windowBackgroundWhiteHintText));
themeDescriptions.add(new ThemeDescription(firstNameField, ThemeDescription.FLAG_BACKGROUNDFILTER, null, null, null, null, Theme.key_windowBackgroundWhiteInputField));
themeDescriptions.add(new ThemeDescription(firstNameField, ThemeDescription.FLAG_BACKGROUNDFILTER | ThemeDescription.FLAG_DRAWABLESELECTEDSTATE, null, null, null, null, Theme.key_windowBackgroundWhiteInputFieldActivated));
themeDescriptions.add(new ThemeDescription(lastNameField, ThemeDescription.FLAG_TEXTCOLOR, null, null, null, null, Theme.key_windowBackgroundWhiteBlackText));
themeDescriptions.add(new ThemeDescription(lastNameField, ThemeDescription.FLAG_HINTTEXTCOLOR, null, null, null, null, Theme.key_windowBackgroundWhiteHintText));
themeDescriptions.add(new ThemeDescription(lastNameField, ThemeDescription.FLAG_BACKGROUNDFILTER, null, null, null, null, Theme.key_windowBackgroundWhiteInputField));
themeDescriptions.add(new ThemeDescription(lastNameField, ThemeDescription.FLAG_BACKGROUNDFILTER | ThemeDescription.FLAG_DRAWABLESELECTEDSTATE, null, null, null, null, Theme.key_windowBackgroundWhiteInputFieldActivated));
themeDescriptions.add(new ThemeDescription(infoTextView, ThemeDescription.FLAG_TEXTCOLOR, null, null, null, null, Theme.key_windowBackgroundWhiteGrayText4));
themeDescriptions.add(new ThemeDescription(null, 0, null, null, Theme.avatarDrawables, cellDelegate, Theme.key_avatar_text));
themeDescriptions.add(new ThemeDescription(null, 0, null, null, null, cellDelegate, Theme.key_avatar_backgroundRed));
themeDescriptions.add(new ThemeDescription(null, 0, null, null, null, cellDelegate, Theme.key_avatar_backgroundOrange));
themeDescriptions.add(new ThemeDescription(null, 0, null, null, null, cellDelegate, Theme.key_avatar_backgroundViolet));
themeDescriptions.add(new ThemeDescription(null, 0, null, null, null, cellDelegate, Theme.key_avatar_backgroundGreen));
themeDescriptions.add(new ThemeDescription(null, 0, null, null, null, cellDelegate, Theme.key_avatar_backgroundCyan));
themeDescriptions.add(new ThemeDescription(null, 0, null, null, null, cellDelegate, Theme.key_avatar_backgroundBlue));
themeDescriptions.add(new ThemeDescription(null, 0, null, null, null, cellDelegate, Theme.key_avatar_backgroundPink));
return themeDescriptions;
2017-03-31 01:58:05 +02:00
}
2013-10-25 17:19:00 +02:00
}