Cleanup colors.
@@ -496,9 +496,9 @@ public class MessagesController implements NotificationCenter.NotificationCenter
|
||||
if (!fromCache) {
|
||||
oldChat.title = chat.title;
|
||||
oldChat.photo = chat.photo;
|
||||
oldChat.broadcast = chat.broadcast;
|
||||
//oldChat.broadcast = chat.broadcast;
|
||||
oldChat.verified = chat.verified;
|
||||
oldChat.megagroup = chat.megagroup;
|
||||
//oldChat.megagroup = chat.megagroup;
|
||||
oldChat.democracy = chat.democracy;
|
||||
if (chat.username != null) {
|
||||
oldChat.username = chat.username;
|
||||
@@ -523,9 +523,9 @@ public class MessagesController implements NotificationCenter.NotificationCenter
|
||||
chat.min = false;
|
||||
chat.title = oldChat.title;
|
||||
chat.photo = oldChat.photo;
|
||||
chat.broadcast = oldChat.broadcast;
|
||||
//chat.broadcast = oldChat.broadcast;
|
||||
chat.verified = oldChat.verified;
|
||||
chat.megagroup = oldChat.megagroup;
|
||||
//chat.megagroup = oldChat.megagroup;
|
||||
chat.democracy = oldChat.democracy;
|
||||
if (oldChat.username != null) {
|
||||
chat.username = oldChat.username;
|
||||
@@ -1052,14 +1052,14 @@ public class MessagesController implements NotificationCenter.NotificationCenter
|
||||
dialogsGroupsOnly.add(d);
|
||||
}
|
||||
} else*/ if (lower_id < 0) {
|
||||
if (chatsDict != null) {
|
||||
/*if (chatsDict != null) {
|
||||
TLRPC.Chat chat = chatsDict.get(-lower_id);
|
||||
if (chat != null && chat.migrated_to != null) {
|
||||
dialogs.remove(a);
|
||||
a--;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}*/
|
||||
dialogsGroupsOnly.add(d);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -560,10 +560,6 @@ public class TLRPC {
|
||||
public boolean mutual;
|
||||
}
|
||||
|
||||
public static class InputChannel extends TLObject {
|
||||
public int channel_id;
|
||||
}
|
||||
|
||||
public static class ChatParticipants extends TLObject {
|
||||
public int flags;
|
||||
public int chat_id;
|
||||
@@ -587,9 +583,9 @@ public class TLRPC {
|
||||
public int date;
|
||||
public int version;
|
||||
public boolean editor;
|
||||
public boolean broadcast;
|
||||
public final boolean broadcast = false;
|
||||
public boolean verified;
|
||||
public boolean megagroup;
|
||||
public final boolean megagroup = false;
|
||||
public boolean left;
|
||||
public String username;
|
||||
public boolean restricted;
|
||||
@@ -597,7 +593,6 @@ public class TLRPC {
|
||||
public boolean signatures;
|
||||
public String restriction_reason;
|
||||
public boolean min;
|
||||
public InputChannel migrated_to;
|
||||
public String address;
|
||||
}
|
||||
|
||||
|
||||
@@ -42,12 +42,6 @@ public class Theme {
|
||||
public static final int ACTION_BAR_WHITE_SELECTOR_COLOR = 0x40ffffff;
|
||||
public static final int ACTION_BAR_AUDIO_SELECTOR_COLOR = 0x2f000000;
|
||||
public static final int ACTION_BAR_MODE_SELECTOR_COLOR = 0xfff0f0f0;
|
||||
public static final int ACTION_BAR_BLUE_SELECTOR_COLOR = 0xff4981ad;
|
||||
public static final int ACTION_BAR_CYAN_SELECTOR_COLOR = 0xff39849d;
|
||||
public static final int ACTION_BAR_GREEN_SELECTOR_COLOR = 0xff48953d;
|
||||
public static final int ACTION_BAR_ORANGE_SELECTOR_COLOR = 0xffe67429;
|
||||
public static final int ACTION_BAR_RED_SELECTOR_COLOR = 0xffbc4b41;
|
||||
public static final int ACTION_BAR_VIOLET_SELECTOR_COLOR = 0xff735fbe;
|
||||
|
||||
public static final int ATTACH_SHEET_TEXT_COLOR = 0xff757575;
|
||||
|
||||
@@ -186,7 +180,6 @@ public class Theme {
|
||||
public static Drawable systemDrawable;
|
||||
public static Drawable timeBackgroundDrawable;
|
||||
public static Drawable timeStickerBackgroundDrawable;
|
||||
public static Drawable[] clockChannelDrawable = new Drawable[2];
|
||||
|
||||
public static Drawable[] cornerOuter = new Drawable[4];
|
||||
public static Drawable[] cornerInner = new Drawable[4];
|
||||
@@ -225,8 +218,6 @@ public class Theme {
|
||||
checkMediaDrawable = context.getResources().getDrawable(R.drawable.msg_check_w);
|
||||
halfCheckMediaDrawable = context.getResources().getDrawable(R.drawable.msg_halfcheck_w);
|
||||
clockMediaDrawable = context.getResources().getDrawable(R.drawable.msg_clock_photo);
|
||||
clockChannelDrawable[0] = context.getResources().getDrawable(R.drawable.msg_clock2);
|
||||
clockChannelDrawable[1] = context.getResources().getDrawable(R.drawable.msg_clock2_s);
|
||||
errorDrawable = context.getResources().getDrawable(R.drawable.msg_warning);
|
||||
timeBackgroundDrawable = context.getResources().getDrawable(R.drawable.phototime2_b);
|
||||
timeStickerBackgroundDrawable = context.getResources().getDrawable(R.drawable.phototime2);
|
||||
|
||||
@@ -661,12 +661,12 @@ public class DialogCell extends BaseCell {
|
||||
} else {
|
||||
if (lower_id < 0) {
|
||||
chat = MessagesController.getInstance().getChat(-lower_id);
|
||||
if (!isDialogCell && chat != null && chat.migrated_to != null) {
|
||||
/*if (!isDialogCell && chat != null && chat.migrated_to != null) {
|
||||
TLRPC.Chat chat2 = MessagesController.getInstance().getChat(chat.migrated_to.channel_id);
|
||||
if (chat2 != null) {
|
||||
chat = chat2;
|
||||
}
|
||||
}
|
||||
}*/
|
||||
} else {
|
||||
user = MessagesController.getInstance().getUser(lower_id);
|
||||
}
|
||||
|
||||
@@ -32,8 +32,6 @@ public class AvatarDrawable extends Drawable {
|
||||
private static TextPaint namePaint;
|
||||
private static TextPaint namePaintSmall;
|
||||
private static int[] arrColors = {0xffe56555, 0xfff28c48, 0xff8e85ee, 0xff76c84d, 0xff5bb6cc, 0xff549cdd, 0xffd25c99, 0xffb37800}; /* the colors should contrast to typical action bar colors as well as to white (more important, is used as text color)*/
|
||||
private static int[] arrColorsButtons = {Theme.ACTION_BAR_RED_SELECTOR_COLOR, Theme.ACTION_BAR_ORANGE_SELECTOR_COLOR, Theme.ACTION_BAR_VIOLET_SELECTOR_COLOR,
|
||||
Theme.ACTION_BAR_GREEN_SELECTOR_COLOR, Theme.ACTION_BAR_CYAN_SELECTOR_COLOR, Theme.ACTION_BAR_BLUE_SELECTOR_COLOR, Theme.ACTION_BAR_VIOLET_SELECTOR_COLOR, Theme.ACTION_BAR_BLUE_SELECTOR_COLOR};
|
||||
|
||||
private static Drawable photoDrawable;
|
||||
|
||||
@@ -86,10 +84,6 @@ public class AvatarDrawable extends Drawable {
|
||||
return arrColors[getColorIndex(id)];
|
||||
}
|
||||
|
||||
public static int getButtonColorForId(int id) {
|
||||
return arrColorsButtons[getColorIndex(id)];
|
||||
}
|
||||
|
||||
public static int getNameColor(String name) {
|
||||
int id = strChecksum(name);
|
||||
return arrColors[getColorIndex(id)];
|
||||
|
||||
@@ -250,7 +250,6 @@ public class ProfileActivity extends BaseFragment implements NotificationCenter.
|
||||
return super.onTouchEvent(event);
|
||||
}
|
||||
};
|
||||
actionBar.setItemsBackgroundColor(AvatarDrawable.getButtonColorForId(user_id != 0 || ChatObject.isChannel(chat_id) && !currentChat.megagroup ? 5 : chat_id));
|
||||
actionBar.setBackButtonDrawable(new BackDrawable(false));
|
||||
actionBar.setCastShadows(false);
|
||||
actionBar.setAddToContainer(false);
|
||||
|
||||
|
Before Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 1.7 KiB |