From 9523311674d919efbaab278f2b2670e7bda15fb8 Mon Sep 17 00:00:00 2001 From: DrKLO Date: Tue, 25 Mar 2014 01:10:35 +0400 Subject: [PATCH] Update group chat creation interface --- TMessagesProj/build.gradle | 4 +- .../messenger/ConnectionsManager.java | 3 +- .../messenger/ContactsController.java | 34 +++---- .../telegram/messenger/MessagesStorage.java | 2 +- .../org/telegram/messenger/NativeLoader.java | 16 ++- .../org/telegram/messenger/TcpConnection.java | 11 +- .../org/telegram/messenger/Utilities.java | 2 +- .../ui/Adapters/ContactsActivityAdapter.java | 8 +- .../org/telegram/ui/Cells/ChatOrUserCell.java | 47 ++++----- .../org/telegram/ui/ChatProfileActivity.java | 1 - .../org/telegram/ui/GroupCreateActivity.java | 50 ++++----- .../telegram/ui/GroupCreateFinalActivity.java | 2 +- .../java/org/telegram/ui/LaunchActivity.java | 2 +- .../org/telegram/ui/SettingsBlockedUsers.java | 1 - .../color/chat_create_bubble_text_states.xml | 8 -- .../btn_check_off_pressed_holo_light.png | Bin 2053 -> 0 bytes .../btn_check_on_pressed_holo_light.png | Bin 2493 -> 0 bytes .../drawable-hdpi/compose_bubble_down.9.png | Bin 195 -> 0 bytes .../res/drawable-hdpi/compose_bubble_up.9.png | Bin 192 -> 0 bytes .../btn_check_off_pressed_holo_light.png | Bin 1634 -> 0 bytes .../btn_check_on_pressed_holo_light.png | Bin 1946 -> 0 bytes .../drawable-mdpi/compose_bubble_down.9.png | Bin 153 -> 0 bytes .../res/drawable-mdpi/compose_bubble_up.9.png | Bin 147 -> 0 bytes .../btn_check_off_pressed_holo_light.png | Bin 2492 -> 0 bytes .../btn_check_on_pressed_holo_light.png | Bin 3077 -> 0 bytes .../drawable-xhdpi/compose_bubble_down.9.png | Bin 222 -> 0 bytes .../drawable-xhdpi/compose_bubble_up.9.png | Bin 215 -> 0 bytes .../btn_check_off_pressed_holo_light.png | Bin 3482 -> 0 bytes .../btn_check_on_pressed_holo_light.png | Bin 4306 -> 0 bytes .../drawable-xxhdpi/compose_bubble_down.9.png | Bin 340 -> 0 bytes .../drawable-xxhdpi/compose_bubble_up.9.png | Bin 321 -> 0 bytes .../main/res/drawable/btn_check_off_old.xml | 8 -- .../main/res/drawable/btn_check_on_old.xml | 8 -- .../drawable/chat_create_bubble_states.xml | 5 - .../layout-ar/group_create_final_layout.xml | 77 +++++++------- .../res/layout-ar/group_create_layout.xml | 14 +-- .../res/layout-ar/group_create_row_layout.xml | 96 +++++++++--------- .../chat_profile_change_name_layout.xml | 6 +- .../main/res/layout/group_create_bubble.xml | 18 ++-- .../res/layout/group_create_done_layout.xml | 5 +- .../res/layout/group_create_final_layout.xml | 77 +++++++------- .../main/res/layout/group_create_layout.xml | 15 +-- .../res/layout/group_create_row_layout.xml | 92 +++++++++-------- 43 files changed, 289 insertions(+), 323 deletions(-) delete mode 100644 TMessagesProj/src/main/res/color/chat_create_bubble_text_states.xml delete mode 100644 TMessagesProj/src/main/res/drawable-hdpi/btn_check_off_pressed_holo_light.png delete mode 100644 TMessagesProj/src/main/res/drawable-hdpi/btn_check_on_pressed_holo_light.png delete mode 100644 TMessagesProj/src/main/res/drawable-hdpi/compose_bubble_down.9.png delete mode 100644 TMessagesProj/src/main/res/drawable-hdpi/compose_bubble_up.9.png delete mode 100644 TMessagesProj/src/main/res/drawable-mdpi/btn_check_off_pressed_holo_light.png delete mode 100644 TMessagesProj/src/main/res/drawable-mdpi/btn_check_on_pressed_holo_light.png delete mode 100644 TMessagesProj/src/main/res/drawable-mdpi/compose_bubble_down.9.png delete mode 100644 TMessagesProj/src/main/res/drawable-mdpi/compose_bubble_up.9.png delete mode 100644 TMessagesProj/src/main/res/drawable-xhdpi/btn_check_off_pressed_holo_light.png delete mode 100644 TMessagesProj/src/main/res/drawable-xhdpi/btn_check_on_pressed_holo_light.png delete mode 100644 TMessagesProj/src/main/res/drawable-xhdpi/compose_bubble_down.9.png delete mode 100644 TMessagesProj/src/main/res/drawable-xhdpi/compose_bubble_up.9.png delete mode 100644 TMessagesProj/src/main/res/drawable-xxhdpi/btn_check_off_pressed_holo_light.png delete mode 100644 TMessagesProj/src/main/res/drawable-xxhdpi/btn_check_on_pressed_holo_light.png delete mode 100644 TMessagesProj/src/main/res/drawable-xxhdpi/compose_bubble_down.9.png delete mode 100644 TMessagesProj/src/main/res/drawable-xxhdpi/compose_bubble_up.9.png delete mode 100644 TMessagesProj/src/main/res/drawable/btn_check_off_old.xml delete mode 100644 TMessagesProj/src/main/res/drawable/btn_check_on_old.xml delete mode 100644 TMessagesProj/src/main/res/drawable/chat_create_bubble_states.xml diff --git a/TMessagesProj/build.gradle b/TMessagesProj/build.gradle index 1f1941ed..faff78e8 100644 --- a/TMessagesProj/build.gradle +++ b/TMessagesProj/build.gradle @@ -82,7 +82,7 @@ android { defaultConfig { minSdkVersion 8 targetSdkVersion 19 - versionCode 208 - versionName "1.4.7" + versionCode 209 + versionName "1.4.8" } } diff --git a/TMessagesProj/src/main/java/org/telegram/messenger/ConnectionsManager.java b/TMessagesProj/src/main/java/org/telegram/messenger/ConnectionsManager.java index 7e29e497..9eac980f 100644 --- a/TMessagesProj/src/main/java/org/telegram/messenger/ConnectionsManager.java +++ b/TMessagesProj/src/main/java/org/telegram/messenger/ConnectionsManager.java @@ -479,7 +479,6 @@ public class ConnectionsManager implements Action.ActionDelegate, TcpConnection. processedMessageIdsSet.remove(sessionId); nextSeqNoInSession.remove(sessionId); processedSessionChanges.remove(sessionId); - pingIdToDate.remove(sessionId); if (sessionId == datacenter.authSessionId) { clearRequestsForRequestClass(RPCRequest.RPCRequestClassGeneric, datacenter); @@ -858,7 +857,7 @@ public class ConnectionsManager implements Action.ActionDelegate, TcpConnection. } } catch(Exception e) { FileLog.e("tmessages", e); - return false; + return true; } return status; } diff --git a/TMessagesProj/src/main/java/org/telegram/messenger/ContactsController.java b/TMessagesProj/src/main/java/org/telegram/messenger/ContactsController.java index 37da471a..65b334bd 100644 --- a/TMessagesProj/src/main/java/org/telegram/messenger/ContactsController.java +++ b/TMessagesProj/src/main/java/org/telegram/messenger/ContactsController.java @@ -592,9 +592,9 @@ public class ContactsController { if (!toImport.isEmpty()) { if (BuildVars.DEBUG_VERSION) { FileLog.e("tmessages", "start import contacts"); - for (TLRPC.TL_inputPhoneContact contact : toImport) { - FileLog.e("tmessages", "add contact " + contact.first_name + " " + contact.last_name + " " + contact.phone); - } +// for (TLRPC.TL_inputPhoneContact contact : toImport) { +// FileLog.e("tmessages", "add contact " + contact.first_name + " " + contact.last_name + " " + contact.phone); +// } } final int count = (int)Math.ceil(toImport.size() / 500.0f); for (int a = 0; a < count; a++) { @@ -614,9 +614,9 @@ public class ContactsController { } TLRPC.TL_contacts_importedContacts res = (TLRPC.TL_contacts_importedContacts)response; if (BuildVars.DEBUG_VERSION) { - for (TLRPC.User user : res.users) { - FileLog.e("tmessages", "received user " + user.first_name + " " + user.last_name + " " + user.phone); - } +// for (TLRPC.User user : res.users) { +// FileLog.e("tmessages", "received user " + user.first_name + " " + user.last_name + " " + user.phone); +// } } MessagesStorage.getInstance().putUsersAndChats(res.users, null, true, true); ArrayList cArr = new ArrayList(); @@ -776,9 +776,9 @@ public class ContactsController { if (user != null) { usersDict.put(user.id, user); - if (BuildVars.DEBUG_VERSION) { - FileLog.e("tmessages", "loaded user contact " + user.first_name + " " + user.last_name + " " + user.phone); - } +// if (BuildVars.DEBUG_VERSION) { +// FileLog.e("tmessages", "loaded user contact " + user.first_name + " " + user.last_name + " " + user.phone); +// } } } @@ -1398,9 +1398,9 @@ public class ContactsController { contactsParams.add(c); req.contacts = contactsParams; req.replace = false; - if (BuildVars.DEBUG_VERSION) { - FileLog.e("tmessages", "add contact " + user.first_name + " " + user.last_name + " " + user.phone); - } +// if (BuildVars.DEBUG_VERSION) { +// FileLog.e("tmessages", "add contact " + user.first_name + " " + user.last_name + " " + user.phone); +// } ConnectionsManager.getInstance().performRpc(req, new RPCRequest.RPCRequestDelegate() { @Override public void run(TLObject response, TLRPC.TL_error error) { @@ -1410,11 +1410,11 @@ public class ContactsController { final TLRPC.TL_contacts_importedContacts res = (TLRPC.TL_contacts_importedContacts)response; MessagesStorage.getInstance().putUsersAndChats(res.users, null, true, true); - if (BuildVars.DEBUG_VERSION) { - for (TLRPC.User user : res.users) { - FileLog.e("tmessages", "received user " + user.first_name + " " + user.last_name + " " + user.phone); - } - } +// if (BuildVars.DEBUG_VERSION) { +// for (TLRPC.User user : res.users) { +// FileLog.e("tmessages", "received user " + user.first_name + " " + user.last_name + " " + user.phone); +// } +// } for (final TLRPC.User u : res.users) { Utilities.globalQueue.postRunnable(new Runnable() { diff --git a/TMessagesProj/src/main/java/org/telegram/messenger/MessagesStorage.java b/TMessagesProj/src/main/java/org/telegram/messenger/MessagesStorage.java index bf4f3c4c..446e37ae 100644 --- a/TMessagesProj/src/main/java/org/telegram/messenger/MessagesStorage.java +++ b/TMessagesProj/src/main/java/org/telegram/messenger/MessagesStorage.java @@ -63,7 +63,7 @@ public class MessagesStorage { public void openDatabase() { NativeLoader.initNativeLibs(ApplicationLoader.applicationContext); - + cacheFile = new File(ApplicationLoader.applicationContext.getFilesDir(), "cache4.db"); SharedPreferences preferences = ApplicationLoader.applicationContext.getSharedPreferences("dbconfig", Context.MODE_PRIVATE); diff --git a/TMessagesProj/src/main/java/org/telegram/messenger/NativeLoader.java b/TMessagesProj/src/main/java/org/telegram/messenger/NativeLoader.java index e07bb636..872d3e3d 100644 --- a/TMessagesProj/src/main/java/org/telegram/messenger/NativeLoader.java +++ b/TMessagesProj/src/main/java/org/telegram/messenger/NativeLoader.java @@ -34,7 +34,6 @@ public class NativeLoader { if (nativeLoaded) { return; } - nativeLoaded = true; if (Build.VERSION.SDK_INT >= 9) { try { @@ -57,6 +56,7 @@ public class NativeLoader { libSize = sizes[3]; } else { System.loadLibrary("tmessages"); + nativeLoaded = true; Log.e("tmessages", "Unsupported arch: " + Build.CPU_ABI); return; } @@ -66,6 +66,7 @@ public class NativeLoader { Log.d("tmessages", "Load normal lib"); try { System.loadLibrary("tmessages"); + nativeLoaded = true; return; } catch (Exception e) { e.printStackTrace(); @@ -75,9 +76,14 @@ public class NativeLoader { File destLocalFile = new File(context.getFilesDir().getAbsolutePath() + "/libtmessages.so"); if (destLocalFile.exists()) { if (destLocalFile.length() == libSize) { - Log.d("tmessages", "Load local lib"); - System.load(destLocalFile.getAbsolutePath()); - return; + try { + Log.d("tmessages", "Load local lib"); + System.load(destLocalFile.getAbsolutePath()); + nativeLoaded = true; + return; + } catch (Exception e) { + e.printStackTrace(); + } } else { destLocalFile.delete(); } @@ -105,6 +111,7 @@ public class NativeLoader { out.close(); System.load(destLocalFile.getAbsolutePath()); + nativeLoaded = true; return; } catch (Exception e) { e.printStackTrace(); @@ -130,5 +137,6 @@ public class NativeLoader { } System.loadLibrary("tmessages"); + nativeLoaded = true; } } diff --git a/TMessagesProj/src/main/java/org/telegram/messenger/TcpConnection.java b/TMessagesProj/src/main/java/org/telegram/messenger/TcpConnection.java index 65a414d5..c819424c 100644 --- a/TMessagesProj/src/main/java/org/telegram/messenger/TcpConnection.java +++ b/TMessagesProj/src/main/java/org/telegram/messenger/TcpConnection.java @@ -60,6 +60,7 @@ public class TcpConnection extends PyroClientAdapter { private boolean firstPacket; private Timer reconnectTimer; + private boolean tryWithNoNetworkAnyway = false; public TcpConnection(int did) { if (selector == null) { @@ -90,9 +91,13 @@ public class TcpConnection extends PyroClientAdapter { connectionState = TcpConnectionState.TcpConnectionStageConnecting; try { - if (!ConnectionsManager.isNetworkOnline()) { - handleConnectionError(null); - return; + if(android.os.Build.VERSION.SDK_INT < 11) { + if (!ConnectionsManager.isNetworkOnline() && !tryWithNoNetworkAnyway) { + handleConnectionError(null); + tryWithNoNetworkAnyway = true; + return; + } + tryWithNoNetworkAnyway = false; } try { synchronized (timerSync) { diff --git a/TMessagesProj/src/main/java/org/telegram/messenger/Utilities.java b/TMessagesProj/src/main/java/org/telegram/messenger/Utilities.java index ae81c160..96a902fc 100644 --- a/TMessagesProj/src/main/java/org/telegram/messenger/Utilities.java +++ b/TMessagesProj/src/main/java/org/telegram/messenger/Utilities.java @@ -941,7 +941,7 @@ public class Utilities { } else if (result.length() != 0 && lastName.length() != 0) { result += " " + lastName; } - return result; + return result.trim(); } public static String formatFileSize(long size) { diff --git a/TMessagesProj/src/main/java/org/telegram/ui/Adapters/ContactsActivityAdapter.java b/TMessagesProj/src/main/java/org/telegram/ui/Adapters/ContactsActivityAdapter.java index d46c4982..f341e93a 100644 --- a/TMessagesProj/src/main/java/org/telegram/ui/Adapters/ContactsActivityAdapter.java +++ b/TMessagesProj/src/main/java/org/telegram/ui/Adapters/ContactsActivityAdapter.java @@ -9,7 +9,6 @@ package org.telegram.ui.Adapters; import android.content.Context; -import android.text.Html; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; @@ -114,7 +113,6 @@ public class ContactsActivityAdapter extends SectionedBaseAdapter { if (user != null) { if (convertView == null) { convertView = new ChatOrUserCell(mContext); - ((ChatOrUserCell)convertView).useBoldFont = true; ((ChatOrUserCell)convertView).usePadding = false; } @@ -153,11 +151,11 @@ public class ContactsActivityAdapter extends SectionedBaseAdapter { } } if (contact.first_name != null && contact.last_name != null) { - textView.setText(Html.fromHtml(contact.first_name + " " + contact.last_name + "")); + textView.setText(contact.first_name + " " + contact.last_name); } else if (contact.first_name != null && contact.last_name == null) { - textView.setText(Html.fromHtml("" + contact.first_name + "")); + textView.setText(contact.first_name); } else { - textView.setText(Html.fromHtml("" + contact.last_name + "")); + textView.setText(contact.last_name); } return convertView; } diff --git a/TMessagesProj/src/main/java/org/telegram/ui/Cells/ChatOrUserCell.java b/TMessagesProj/src/main/java/org/telegram/ui/Cells/ChatOrUserCell.java index bbab9c69..48fa5664 100644 --- a/TMessagesProj/src/main/java/org/telegram/ui/Cells/ChatOrUserCell.java +++ b/TMessagesProj/src/main/java/org/telegram/ui/Cells/ChatOrUserCell.java @@ -12,7 +12,6 @@ import android.content.Context; import android.graphics.Canvas; import android.graphics.Paint; import android.graphics.drawable.Drawable; -import android.text.Html; import android.text.Layout; import android.text.StaticLayout; import android.text.TextPaint; @@ -55,7 +54,6 @@ public class ChatOrUserCell extends BaseCell { private TLRPC.FileLocation lastAvatar = null; public boolean usePadding = true; - public boolean useBoldFont = false; public boolean useSeparator = false; public float drawAlpha = 1; @@ -294,39 +292,30 @@ public class ChatOrUserCell extends BaseCell { if (currentName != null) { nameString = currentName; } else { - if (useBoldFont) { - if (user != null) { - if (user.first_name.length() != 0 && user.last_name.length() != 0) { - nameString = Html.fromHtml(user.first_name + " " + user.last_name + ""); - } else if (user.first_name.length() != 0) { - nameString = Html.fromHtml("" + user.first_name + ""); - } else { - nameString = Html.fromHtml("" + user.last_name + ""); - } - } - } else { - String nameString2 = ""; - if (chat != null) { - nameString2 = chat.title; - } else if (user != null) { - if (user.id / 1000 != 333 && ContactsController.getInstance().contactsDict.get(user.id) == null) { - if (ContactsController.getInstance().contactsDict.size() == 0 && ContactsController.getInstance().loadingContacts) { - nameString2 = Utilities.formatName(user.first_name, user.last_name); - } else { - if (user.phone != null && user.phone.length() != 0) { - nameString2 = PhoneFormat.getInstance().format("+" + user.phone); - } else { - nameString2 = Utilities.formatName(user.first_name, user.last_name); - } - } - } else { + String nameString2 = ""; + if (chat != null) { + nameString2 = chat.title; + } else if (user != null) { + if (user.id / 1000 != 333 && ContactsController.getInstance().contactsDict.get(user.id) == null) { + if (ContactsController.getInstance().contactsDict.size() == 0 && ContactsController.getInstance().loadingContacts) { nameString2 = Utilities.formatName(user.first_name, user.last_name); + } else { + if (user.phone != null && user.phone.length() != 0) { + nameString2 = PhoneFormat.getInstance().format("+" + user.phone); + } else { + nameString2 = Utilities.formatName(user.first_name, user.last_name); + } } + } else { + nameString2 = Utilities.formatName(user.first_name, user.last_name); } - nameString = nameString2.replace("\n", " "); } + nameString = nameString2.replace("\n", " "); } if (nameString.length() == 0) { + if (user.phone != null && user.phone.length() != 0) { + nameString = PhoneFormat.getInstance().format("+" + user.phone); + } nameString = LocaleController.getString("HiddenName", R.string.HiddenName); } if (encryptedChat != null) { diff --git a/TMessagesProj/src/main/java/org/telegram/ui/ChatProfileActivity.java b/TMessagesProj/src/main/java/org/telegram/ui/ChatProfileActivity.java index 726a118c..0d845f2b 100644 --- a/TMessagesProj/src/main/java/org/telegram/ui/ChatProfileActivity.java +++ b/TMessagesProj/src/main/java/org/telegram/ui/ChatProfileActivity.java @@ -684,7 +684,6 @@ public class ChatProfileActivity extends BaseFragment implements NotificationCen if (view == null) { view = new ChatOrUserCell(mContext); - ((ChatOrUserCell)view).useBoldFont = true; ((ChatOrUserCell)view).usePadding = false; ((ChatOrUserCell)view).useSeparator = true; } diff --git a/TMessagesProj/src/main/java/org/telegram/ui/GroupCreateActivity.java b/TMessagesProj/src/main/java/org/telegram/ui/GroupCreateActivity.java index 3015e4ca..42de51de 100644 --- a/TMessagesProj/src/main/java/org/telegram/ui/GroupCreateActivity.java +++ b/TMessagesProj/src/main/java/org/telegram/ui/GroupCreateActivity.java @@ -18,7 +18,6 @@ import android.os.Bundle; import android.support.v4.internal.view.SupportMenuItem; import android.support.v7.app.ActionBar; import android.text.Editable; -import android.text.Html; import android.text.Spannable; import android.text.SpannableString; import android.text.SpannableStringBuilder; @@ -35,6 +34,7 @@ import android.widget.EditText; import android.widget.ImageView; import android.widget.TextView; +import org.telegram.PhoneFormat.PhoneFormat; import org.telegram.messenger.LocaleController; import org.telegram.messenger.TLRPC; import org.telegram.messenger.ConnectionsManager; @@ -60,9 +60,7 @@ public class GroupCreateActivity extends BaseFragment implements NotificationCen private SectionedBaseAdapter listViewAdapter; private PinnedHeaderListView listView; private TextView epmtyTextView; - private TextView doneTextView; private EditText userSelectEditText; - private TextView countTextView; private boolean ignoreChange = false; private HashMap selectedContacts = new HashMap(); @@ -117,7 +115,6 @@ public class GroupCreateActivity extends BaseFragment implements NotificationCen epmtyTextView.setText(LocaleController.getString("NoContacts", R.string.NoContacts)); userSelectEditText = (EditText)fragmentView.findViewById(R.id.bubble_input_text); userSelectEditText.setHint(LocaleController.getString("SendMessageTo", R.string.SendMessageTo)); - countTextView = (TextView)fragmentView.findViewById(R.id.bubble_counter_text); if (Build.VERSION.SDK_INT >= 11) { userSelectEditText.setTextIsSelectable(false); } @@ -159,12 +156,10 @@ public class GroupCreateActivity extends BaseFragment implements NotificationCen selectedContacts.remove(sp.uid); } } - if (selectedContacts.isEmpty()) { - doneTextView.setText(LocaleController.getString("Done", R.string.Done)); - } else { - doneTextView.setText(LocaleController.getString("Done", R.string.Done) + " (" + selectedContacts.size() + ")"); + if (parentActivity != null) { + ActionBar actionBar = parentActivity.getSupportActionBar(); + actionBar.setSubtitle(String.format("%d/200 %s", selectedContacts.size(), LocaleController.getString("Members", R.string.Members))); } - countTextView.setText(selectedContacts.size() + "/200"); listView.invalidateViews(); } else { search = true; @@ -230,12 +225,10 @@ public class GroupCreateActivity extends BaseFragment implements NotificationCen span.uid = user.id; ignoreChange = false; } - if (selectedContacts.isEmpty()) { - doneTextView.setText(LocaleController.getString("Done", R.string.Done)); - } else { - doneTextView.setText(LocaleController.getString("Done", R.string.Done) + " (" + selectedContacts.size() + ")"); + if (parentActivity != null) { + ActionBar actionBar = parentActivity.getSupportActionBar(); + actionBar.setSubtitle(String.format("%d/200 %s", selectedContacts.size(), LocaleController.getString("Members", R.string.Members))); } - countTextView.setText(selectedContacts.size() + "/200"); if (searching || searchWas) { searching = false; searchWas = false; @@ -279,6 +272,7 @@ public class GroupCreateActivity extends BaseFragment implements NotificationCen actionBar.setDisplayShowCustomEnabled(false); actionBar.setCustomView(null); actionBar.setTitle(LocaleController.getString("NewGroup", R.string.NewGroup)); + actionBar.setSubtitle(String.format("%d/200 %s", selectedContacts.size(), LocaleController.getString("Members", R.string.Members))); TextView title = (TextView)parentActivity.findViewById(R.id.action_bar_title); if (title == null) { @@ -305,7 +299,11 @@ public class GroupCreateActivity extends BaseFragment implements NotificationCen LayoutInflater lf = (LayoutInflater)parentActivity.getSystemService(Activity.LAYOUT_INFLATER_SERVICE); View textView = lf.inflate(R.layout.group_create_bubble, null); TextView text = (TextView)textView.findViewById(R.id.bubble_text_view); - text.setText(Utilities.formatName(user.first_name, user.last_name)); + String name = Utilities.formatName(user.first_name, user.last_name); + if (name.length() == 0 && user.phone != null && user.phone.length() != 0) { + name = PhoneFormat.getInstance().format("+" + user.phone); + } + text.setText(name + ", "); int spec = View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED); textView.measure(spec, spec); @@ -425,8 +423,8 @@ public class GroupCreateActivity extends BaseFragment implements NotificationCen public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { inflater.inflate(R.menu.group_create_menu, menu); SupportMenuItem doneItem = (SupportMenuItem)menu.findItem(R.id.done_menu_item); - doneTextView = (TextView)doneItem.getActionView().findViewById(R.id.done_button); - doneTextView.setText(LocaleController.getString("Done", R.string.Done)); + TextView doneTextView = (TextView)doneItem.getActionView().findViewById(R.id.done_button); + doneTextView.setText(LocaleController.getString("Next", R.string.Next)); doneTextView.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { @@ -525,9 +523,9 @@ public class GroupCreateActivity extends BaseFragment implements NotificationCen ImageView checkButton = (ImageView)convertView.findViewById(R.id.settings_row_check_button); if (selectedContacts.containsKey(user.id)) { - checkButton.setImageResource(R.drawable.btn_check_on_old); + checkButton.setImageResource(R.drawable.btn_check_on_holo_light); } else { - checkButton.setImageResource(R.drawable.btn_check_off_old); + checkButton.setImageResource(R.drawable.btn_check_off_holo_light); } View divider = convertView.findViewById(R.id.settings_row_divider); @@ -540,13 +538,15 @@ public class GroupCreateActivity extends BaseFragment implements NotificationCen if (searchWas && searching) { holder.nameTextView.setText(searchResultNames.get(position)); } else { - if (user.first_name.length() != 0 && user.last_name.length() != 0) { - holder.nameTextView.setText(Html.fromHtml(user.first_name + " " + user.last_name + "")); - } else if (user.first_name.length() != 0) { - holder.nameTextView.setText(Html.fromHtml("" + user.first_name + "")); - } else { - holder.nameTextView.setText(Html.fromHtml("" + user.last_name + "")); + String name = Utilities.formatName(user.first_name, user.last_name); + if (name.length() == 0) { + if (user.phone != null && user.phone.length() != 0) { + name = PhoneFormat.getInstance().format("+" + user.phone); + } else { + name = LocaleController.getString("HiddenName", R.string.HiddenName); + } } + holder.nameTextView.setText(name); } TLRPC.FileLocation photo = null; diff --git a/TMessagesProj/src/main/java/org/telegram/ui/GroupCreateFinalActivity.java b/TMessagesProj/src/main/java/org/telegram/ui/GroupCreateFinalActivity.java index e01022b6..79438d06 100644 --- a/TMessagesProj/src/main/java/org/telegram/ui/GroupCreateFinalActivity.java +++ b/TMessagesProj/src/main/java/org/telegram/ui/GroupCreateFinalActivity.java @@ -148,6 +148,7 @@ public class GroupCreateFinalActivity extends BaseFragment implements Notificati actionBar.setDisplayUseLogoEnabled(false); actionBar.setDisplayShowCustomEnabled(false); actionBar.setCustomView(null); + actionBar.setSubtitle(null); actionBar.setTitle(LocaleController.getString("NewGroup", R.string.NewGroup)); TextView title = (TextView)parentActivity.findViewById(R.id.action_bar_title); @@ -346,7 +347,6 @@ public class GroupCreateFinalActivity extends BaseFragment implements Notificati if (convertView == null) { convertView = new ChatOrUserCell(mContext); - ((ChatOrUserCell)convertView).useBoldFont = true; ((ChatOrUserCell)convertView).usePadding = false; } diff --git a/TMessagesProj/src/main/java/org/telegram/ui/LaunchActivity.java b/TMessagesProj/src/main/java/org/telegram/ui/LaunchActivity.java index b7dc4a5d..0b003f29 100644 --- a/TMessagesProj/src/main/java/org/telegram/ui/LaunchActivity.java +++ b/TMessagesProj/src/main/java/org/telegram/ui/LaunchActivity.java @@ -86,7 +86,7 @@ public class LaunchActivity extends ActionBarActivity implements NotificationCen if (!UserConfig.clientActivated) { Intent intent = getIntent(); - if (intent != null && intent.getAction() != null && Intent.ACTION_SEND.equals(intent.getAction()) || intent.getAction().equals(Intent.ACTION_SEND_MULTIPLE)) { + if (intent != null && intent.getAction() != null && (Intent.ACTION_SEND.equals(intent.getAction()) || intent.getAction().equals(Intent.ACTION_SEND_MULTIPLE))) { finish(); return; } diff --git a/TMessagesProj/src/main/java/org/telegram/ui/SettingsBlockedUsers.java b/TMessagesProj/src/main/java/org/telegram/ui/SettingsBlockedUsers.java index eb284c45..237ef028 100644 --- a/TMessagesProj/src/main/java/org/telegram/ui/SettingsBlockedUsers.java +++ b/TMessagesProj/src/main/java/org/telegram/ui/SettingsBlockedUsers.java @@ -386,7 +386,6 @@ public class SettingsBlockedUsers extends BaseFragment implements NotificationCe if (type == 0) { if (view == null) { view = new ChatOrUserCell(mContext); - ((ChatOrUserCell)view).useBoldFont = true; ((ChatOrUserCell)view).usePadding = false; ((ChatOrUserCell)view).useSeparator = true; } diff --git a/TMessagesProj/src/main/res/color/chat_create_bubble_text_states.xml b/TMessagesProj/src/main/res/color/chat_create_bubble_text_states.xml deleted file mode 100644 index 36e36ca5..00000000 --- a/TMessagesProj/src/main/res/color/chat_create_bubble_text_states.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/TMessagesProj/src/main/res/drawable-hdpi/btn_check_off_pressed_holo_light.png b/TMessagesProj/src/main/res/drawable-hdpi/btn_check_off_pressed_holo_light.png deleted file mode 100644 index 0f54a35b148d10b4339e04ca6dc55dd1f639b873..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2053 zcmbVNYg7|w8lD6c1Qdj-h_*Wfs6feOCLxe4L2>~SC6NLOvWgBf14$v7m<%Sw8?fMo z76gwiT2VoFt+j~M;t`c1cH>&8Rw^yDK#?L=Zhgz1B(J5pikwKae0}hBWA{_@6S|k%s zz!5BWOA8(W01ie?QVN-(j1!`SmW9|cEVEWmu>l}rrCE=lSvU!%urn z5hFQN$x-U1xLPB(81O`kDhah@p#qGtG7^k13n>L!oJ2sgHd|*DnnjFfdWF>9e#~Zo z&md%$i1FO16lFXpB@8$i$_izo9Eb;o30P1l#0!T)K$rt@*&Hq#;xZvv$PoykQ1HdW zpsX3N3}J#S=7lXv5;4>ysTZ=@CXhG8a!U>b9EBw}XjjDE8k zWVjJEX!N9p(1CW1NIH>2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Gt6%o<_2sMo;j-={-raTdz%mclYn#ml^7$#^L*4JGJ_>-JgtLo{re0@XNF*({>o6^!fk@5M8+GyXI(Glw=ZvGm@&W34+qQ=+X zU*?%?8(F?|IA?2hw|}y3(#Ds+R-kJOxPT6uj_jhl0cQ%?`9dx2sr|>Sh*rsJC7TQW E12EbvZvX%Q diff --git a/TMessagesProj/src/main/res/drawable-hdpi/btn_check_on_pressed_holo_light.png b/TMessagesProj/src/main/res/drawable-hdpi/btn_check_on_pressed_holo_light.png deleted file mode 100644 index d4ce43712f59b53887bb49bf430ff4552fa43868..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2493 zcmbVOdpK0<8ehi!wsT1+Cu0)b=4xilOyo8$LxaW?+iuI4SO4rND?K^ zG1zvcM55S(N|aJLWrxkAdu-RpWtX#5I_Hm`{l{6)v)1>$-}n2y_xE|$5r1D#eVyex z008JSyyz@=#Vx#A8t^v|F>?rB%pvz6C_o$z#d4$|;KCD!fk=js69KY74sUl<8|VN4 zsxkpP2nu3urg6nW3}*p@i4#g-HUKy{#Ys5aNDxAXfe`|cBWmQD0)-Ut98rNJCXOj_ z1Nj24JyI}Wk1w0MCz4C$p`11$9pY%P0wD--ka5CYA{i~t5%ozg4c;#tV^PRY5Gc|S z_1UQ)ra#h6ECrDy3<=G};fY9lDh5x&6Djx&NCFOThsD`p@pfoDfrg{f@Fe7y2L)S` z^1^8>y2lq=u;hs1Ly&}q#m2_QVq)zuVrc{xPo+|^I0BYHK*I>MY_|yF#Gys9Rf`(v zpo}XONFae&gj~?b2@^*{jwsmE&mjmUOy*a`BH5Qj!70PWaU@tg28R_27vlPamO(7= zzixaJEo1MNfLInN6GuzAa6Q6TEt28f{k@?DAnXmzPbz?m!r4U^bEAcz2x8D3QSc3h zC*aYzR1OuiC)uIx?8!JZF^o(^hfzU0G?7ao;JBcjy*-tQ&|uX6wkUndC^!Q&%^ z=fp~H<}v`ND;abbc3gLR@DF|~JeT&F`?=zeH(u4QRx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v#ud}@m&bts;qS9b3P8Z$wy~O8>UOoyYGb7UtaNj)fTj&RS>A? z@CNj()6SA_aMZUv3UxO!tW6oNK9Y7K<)}K_I#WG97(wv29mS~Y^YhPop`uLI6Kjag zbtu)FJL`UZ6l)U6du-x^iaGob)!B7{YXi`uQA4MlN!x$x7#9HB2WXYKoPydGk|Mum zT}^urTA(PQcw--UYZZPGHo&%h6;O5?Ohl=6uORsPZ-S;2A9}ETn diff --git a/TMessagesProj/src/main/res/drawable-hdpi/compose_bubble_down.9.png b/TMessagesProj/src/main/res/drawable-hdpi/compose_bubble_down.9.png deleted file mode 100644 index b298d4ccd8d400ccf3c4117b951d6c66a22fa89e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 195 zcmeAS@N?(olHy`uVBq!ia0vp^3P5bc!3HF4Q*NdJsV+|!$B>F!Z*N+2H5drEUVL*h zNV<9Vm(3a*H*WCwwlLXcQCO3}q=xbbrkD2wpV#uz(2Uyo+RCcf;;HwG d<42ymALBct7xd+>{OM^R?VhfFF6*2UngF(qM4SKs diff --git a/TMessagesProj/src/main/res/drawable-hdpi/compose_bubble_up.9.png b/TMessagesProj/src/main/res/drawable-hdpi/compose_bubble_up.9.png deleted file mode 100644 index 5f65aa7e0f8a58a488c229c5d31418edfa31fe51..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 192 zcmeAS@N?(olHy`uVBq!ia0vp^3P5bc!3HF4Q*NdJsdi5n$B>F!Z*N+2H5iDvTzqpf z===Rlmzn>|ESVD6Ie_M&fdlUu*Q5vh&kyw;|g`rvY`1q0=tr)i!ZC$`*%jg bpA!*`N%d_9Cm!*%2I=>7^>bP0l+XkKc?Lj4 diff --git a/TMessagesProj/src/main/res/drawable-mdpi/btn_check_off_pressed_holo_light.png b/TMessagesProj/src/main/res/drawable-mdpi/btn_check_off_pressed_holo_light.png deleted file mode 100644 index 4c358b6c77dcb5c93615227c2fb8d4dbce4a4254..0000000000000000000000000000000000000000 G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`xXE# z(Zwv!Ve7ryoqH~Nu$I{uD|}DHR7b3sSD|pFDc87Gy>Gqkl;&OYtZc*8+SGt8oY7^M zUa6P))gHU4T;aM?;o4!Tp=nYSUXgu8gO@AsZrF2m>_*QI!QQb~Ys(jfcwDRBJ-XYf z^moq}k{9emeXfUg0Fj-8S$anP*=X&QC?GkbWgzYfbN_1|;`^ajYRjJqsr;I7XN>w- z?I z_oGMdnYUsWm#ZCy3dL>*nKLVo z6}o)Ywsuov?}`^K9lPcp-PtwouKBa#ahJHT_LpKt66#W089&ZB;&Rf@y*)jW?X$mh z<$H0Gn6iuxF+(~YhIGnc=F9;lQcoQ^@j&d49Lq95R_xId^#S6Xcj=0rHs|r2hy3Ecs?Jn2BvuM&%myzB- zZ#gz8j~uHOl+k`U93b3vdu==K&iW7g=C>?LORgAlj&^DAYRz&RKUcH&a_z`v%N}}( z*9#{dhg4%9L)YKP_%d#|_OACG%ly8^*9PnIB`^Kq(@r~-GT+sEc-e^UZyBYCmYBrYUZp`9E0Fn1LZr%=A}8MeJjsT@0SCelF{r5}E+_!Z&{a diff --git a/TMessagesProj/src/main/res/drawable-mdpi/compose_bubble_up.9.png b/TMessagesProj/src/main/res/drawable-mdpi/compose_bubble_up.9.png deleted file mode 100644 index dd401ff34be451fc00bab03821a87c6eb13a7e36..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 147 zcmeAS@N?(olHy`uVBq!ia0vp^VnD3K!3HFw<24(ARFtQSV@SoVx7Q507!-Jz57@=s zzh3@=pGA?YsiZ(Ky1+wmir#forRN7z&n*`9pe+oZu6{1-oD!MJ@918kU}o`>dA*pC_(~IP7PL zR?fzKaVjc!IhF^hK`fm>$4f|L8rFwNAk)b-2H6WsA(5#>5|v1%;>i>iiOC|ppYaW)yIcPo7D3?K9$EMQTn2JJJ|)xlOQdm zNrF^Z9uGS|SR|1tC*%baHTn`VA5_cIK&e0tDX^cD%#wY_0j5Mu7Eu^vJcA*X;%Oo& z70(b$>39+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t5WJ_o5(<1P%Moty38M5$0L^iFxA zV|aLHP?Ki)Dud<2&oei8nlVeQW~fSg_^KBjKO+M!x_cTuc%F2DvuO;LZCpv-%0G#a zM+fBQePld%aZQr?#jX98UIy#gl)OHJRByKhhT-07J1q3zR$a z!c7;9@4Oqn_hFG>!v@8<(lc)zT)IKhvE1|(Xlk8tPT~DLJ)b9T;2dS=>uO~#ZIH2! z8ibg)Ev~K{v2AT3GIHw1rSQ;pdH@Wmpo~eB1$TfLWX}6jiRM0m8!hN5G>!qh6y!6?;hBccZx69^$qn`YRdrNl{c57E-|uU E0OA4|hX4Qo diff --git a/TMessagesProj/src/main/res/drawable-xhdpi/compose_bubble_down.9.png b/TMessagesProj/src/main/res/drawable-xhdpi/compose_bubble_down.9.png deleted file mode 100644 index b1003163a2befbba3e738f254e941bd8590bec73..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 222 zcmeAS@N?(olHy`uVBq!ia0vp^T0rc?!3HE1Q(SU@)KX6u$B>F!Z*OhnJ!Bx_dNJgU z>x{;^3!3LuFnmjFxKX;PNzsW(C0Idm0`qh4_4Z}8v!87}Er0L)ov((kA7^fSb!p$* zM+K4Vk`((UXKuQ?AlGAeRs*X=?z;=K>Nef^z;V`;|I7P@k|KCPNCX4dFBYrG4yzwM v$*p{`J=I0xQADYW#cZ9=+={PnE54D;ndj>xASrej=wJpF!Z*LiL9Wr2OedsqY z)_m`b!jA%OZ$#(mHbw2?ShVC9>%B=Yy`SxW9cTUXL*27Ga>YJj?XzMnp9W=JI`QkG z$*p%69v0meDA-hc_7`LBYxU*QIp^(XO=JJ{{X#<%Uckle;Fx}al{M~HXKj?$ oyqw*~AwD^^PBEp{x@9lZPl;t)X7wxF2D+5N)78&qol`;+056e!d>+s;g81 z0DwBllSr2D5z7x)S^gdz-e1G;XegcKd01)VGDg#DhQX&~-28Es&dylaZ z008l#0z&v9KHg3=Hq(Z(tYaf!a^z?LV575uL!m`8_%JFXGKz(Ve`#oe!=m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L}0C?^NjD zZUcp8_V1^qMFkE6y$|@qKbDuOzZhZUcyG*tO1zW8o_bGBi-HwRb;YYSc}sYG zH~KhF9qDM7eMGe8;oRFeEJ!ozm`v9J!gD%?s@m5Mt^9g=A}8N$?~OW9w2BIw3=6!8g_f!7Gf0FY=(|{I^-{Az~9* zSGBWd&?Q;@HiBaU)T->^$CMG*87GjBo$-cOF*v{VbKeH&h6$!|~9zq;%l0rFxlJSXr!_)_}>EqTNkM~xNzE!{VNFY9kZVOc3+z4ne=H=WzxWnVf*7oZc z@3H;!Z%QT2@8j@kzrNXCUVKHp^w~ME^3?CRHv!K~F2C$IbE7m4ZhzlZc6Y^_kcQQV zLR6-oSPo7iMN;HCfaHwq>M_tAe4T!<{kD^EiXe4VT@CIkFMNHE!Kq8pE;NY>ASEd2 zVoYB<9p=D%MXSE6ksV7K$Uv18W~xfu>{85EOOl8+e-v)npd@mQpJ=quGVw14W5J$@ zAg}#_6dm!@Lo?9HL1evqtH?XSckIpumBfu1{W0|iRw!ivtYkq_oP*-X5lL~_l9$Zk zjvqNw0Z;{P$4mRW9QpZFy3pBjrJt4K(11d|(iQaS8&A9X4yOytQ(N@< zFiA_L3WuUhJgSAK`jEHVz9pPawW_%K#jUq^b=Ul1y}bhMD#ee5%zU9 ztggkqD$Q{33FMKaS2IWLMQ4l*5RE3&24UCMn%+I?54zI2a?|L%VQLyLrSZv3m>%4W xXj`uPE4lLPOzxhq3q#FIsNIVbHy3px0CBsHtyl>Q)Ls5tB5n31*0@Gw{2NXv-|_$e diff --git a/TMessagesProj/src/main/res/drawable-xxhdpi/btn_check_on_pressed_holo_light.png b/TMessagesProj/src/main/res/drawable-xxhdpi/btn_check_on_pressed_holo_light.png deleted file mode 100644 index fef30cc1dbf8f85c5a6d740bca78d854b183c2f5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4306 zcmbVQc|4SB`yU1wyQ#>QF(j&4j2Vowjdg6^cq+k<>_R4xB11aJM*sjI zgW`6A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xTK#*T zSN_&im#Xl6irP#Of4ten_j;pAV&}~jkK9W z*j7A!MeR;zvV};}y#^KCFKyC@=EK)n9$_127mQJzweieVB`y)JDYUH6<#Q(wb9i0r z)tfJG_@8Sfhn7cmZn`_x`=z{>b!PcPxvGE-%)4aVTT;_=$@ zcJErpamn*fn`BM#)(o@hBSPmY1(adjgeJdcH6qHaT1tV@G)kR1pQ*iDu6SX+Mk|kF zC8aP#!}=_P#Ma!3Ood~{HZShkmk<)V^ys2vqz32US`$d-Vlhz`jFE2d5j@@U>vj&w zd~FLB`HEIADlHV!Qmv7;d{4-_sAD*~7DO^YU1lt!^x!c7Mp2vuf!j z?--NV?BA6`#XlE)_rGXQa=Rh5*rXDXx%ka*xj(ZKXZ2s-zv|cB zlK(oNn~$=#&$rzpcilJcO75*|zOU4-F4xrWD&)6Ya5<~!!TYuQJ}}qZTQ-~F#lqbs zwujPvtGbx-_w4xBL8k{`9vmm_I}3q2M$sJ{1?AQFhr^cc;t#qU4;>DLQ eK8)S4ia$!*&U~V;ssb>y7(8A5T-G@yGywpK6RTPP diff --git a/TMessagesProj/src/main/res/drawable-xxhdpi/compose_bubble_up.9.png b/TMessagesProj/src/main/res/drawable-xxhdpi/compose_bubble_up.9.png deleted file mode 100644 index 4202efa5ee3dbf33b810e03504a696dc3a62db13..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 321 zcmeAS@N?(olHy`uVBq!ia0vp^c0ioO!3HEbdJ|4CFfej>x;TbZ+GKgfBD$~^_9o;|ETZLc^~D@Uu4~~Ug%)B^A9`0 z8v7RaWev^E&l}h+r~rQKKVe{}2)AC~xk2eubZX0`j>@jCy - - - - - - \ No newline at end of file diff --git a/TMessagesProj/src/main/res/drawable/btn_check_on_old.xml b/TMessagesProj/src/main/res/drawable/btn_check_on_old.xml deleted file mode 100644 index 3923693a..00000000 --- a/TMessagesProj/src/main/res/drawable/btn_check_on_old.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/TMessagesProj/src/main/res/drawable/chat_create_bubble_states.xml b/TMessagesProj/src/main/res/drawable/chat_create_bubble_states.xml deleted file mode 100644 index bba9664b..00000000 --- a/TMessagesProj/src/main/res/drawable/chat_create_bubble_states.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/TMessagesProj/src/main/res/layout-ar/group_create_final_layout.xml b/TMessagesProj/src/main/res/layout-ar/group_create_final_layout.xml index 8567d67a..bfc16213 100644 --- a/TMessagesProj/src/main/res/layout-ar/group_create_final_layout.xml +++ b/TMessagesProj/src/main/res/layout-ar/group_create_final_layout.xml @@ -1,30 +1,35 @@ - + - + - + + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:src="@drawable/group_blue"/> + + - - + + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:id="@+id/listView" + android:clipToPadding="false" + android:fadingEdge="none" + android:fadingEdgeLength="0dp" + android:paddingLeft="16dp" + android:paddingRight="16dp" + android:dividerHeight="0dp" + android:divider="@null" + android:paddingBottom="16dp" + android:scrollbars="none"/> + diff --git a/TMessagesProj/src/main/res/layout-ar/group_create_layout.xml b/TMessagesProj/src/main/res/layout-ar/group_create_layout.xml index f674d7df..1de70d4f 100644 --- a/TMessagesProj/src/main/res/layout-ar/group_create_layout.xml +++ b/TMessagesProj/src/main/res/layout-ar/group_create_layout.xml @@ -21,7 +21,7 @@ android:layout_marginRight="5dp" android:minHeight="52dp" android:gravity="right|center_vertical" - android:maxLines="3" + android:maxLines="2" android:paddingTop="3dp" android:layout_marginTop="0dp" android:inputType="textFilter|textNoSuggestions|textMultiLine" @@ -29,18 +29,6 @@ android:textCursorDrawable="@null" android:textColor="#000000"/> - - diff --git a/TMessagesProj/src/main/res/layout-ar/group_create_row_layout.xml b/TMessagesProj/src/main/res/layout-ar/group_create_row_layout.xml index 2662414f..d2eaad58 100644 --- a/TMessagesProj/src/main/res/layout-ar/group_create_row_layout.xml +++ b/TMessagesProj/src/main/res/layout-ar/group_create_row_layout.xml @@ -1,57 +1,61 @@ - + + android:layout_width="50dp" + android:layout_height="50dp" + android:id="@+id/messages_list_row_avatar" + android:contentDescription="" + android:layout_marginTop="8dp" + android:layout_gravity="top|right"/> + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:id="@+id/messages_list_row_name" + android:textSize="18dp" + android:layout_marginRight="61dp" + android:ellipsize="end" + android:layout_marginTop="10dp" + android:textColor="#000000" + android:maxLines="1" + android:layout_marginLeft="60dp" + android:layout_gravity="top|right" + android:gravity="right"/> + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:id="@+id/messages_list_row_message" + android:textSize="15dp" + android:maxLines="1" + android:ellipsize="end" + android:textColor="#808080" + android:layout_marginLeft="60dp" + android:layout_marginTop="34dp" + android:layout_marginRight="61dp" + android:layout_gravity="top|right" + android:gravity="right"/> - + + + - \ No newline at end of file diff --git a/TMessagesProj/src/main/res/layout/chat_profile_change_name_layout.xml b/TMessagesProj/src/main/res/layout/chat_profile_change_name_layout.xml index 8e19219e..81e5e34e 100644 --- a/TMessagesProj/src/main/res/layout/chat_profile_change_name_layout.xml +++ b/TMessagesProj/src/main/res/layout/chat_profile_change_name_layout.xml @@ -5,14 +5,16 @@ android:layout_width="match_parent" android:layout_height="match_parent"> - - + - + + diff --git a/TMessagesProj/src/main/res/layout/group_create_done_layout.xml b/TMessagesProj/src/main/res/layout/group_create_done_layout.xml index 0edcbfa9..8c61137c 100644 --- a/TMessagesProj/src/main/res/layout/group_create_done_layout.xml +++ b/TMessagesProj/src/main/res/layout/group_create_done_layout.xml @@ -1,7 +1,7 @@ @@ -19,6 +19,7 @@ android:paddingRight="16dp" android:paddingLeft="16dp" android:background="@drawable/bar_selector" - android:minHeight="60dp"/> + android:minHeight="60dp" + android:textAllCaps="true"/> \ No newline at end of file diff --git a/TMessagesProj/src/main/res/layout/group_create_final_layout.xml b/TMessagesProj/src/main/res/layout/group_create_final_layout.xml index 58cabae6..2970282e 100644 --- a/TMessagesProj/src/main/res/layout/group_create_final_layout.xml +++ b/TMessagesProj/src/main/res/layout/group_create_final_layout.xml @@ -1,30 +1,35 @@ - + - + - + + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:src="@drawable/group_blue"/> + + - - + + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:id="@+id/listView" + android:clipToPadding="false" + android:fadingEdge="none" + android:fadingEdgeLength="0dp" + android:paddingLeft="16dp" + android:paddingRight="16dp" + android:dividerHeight="0dp" + android:divider="@null" + android:paddingBottom="16dp" + android:scrollbars="none"/> + diff --git a/TMessagesProj/src/main/res/layout/group_create_layout.xml b/TMessagesProj/src/main/res/layout/group_create_layout.xml index 3a320581..763c3ea2 100644 --- a/TMessagesProj/src/main/res/layout/group_create_layout.xml +++ b/TMessagesProj/src/main/res/layout/group_create_layout.xml @@ -14,14 +14,13 @@ android:textSize="16dp" android:textColorHint="#a6a6a6" android:id="@+id/bubble_input_text" - android:paddingRight="60dp" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="5dp" android:layout_marginRight="5dp" android:minHeight="52dp" android:gravity="left|center_vertical" - android:maxLines="3" + android:maxLines="2" android:paddingTop="3dp" android:layout_marginTop="0dp" android:inputType="textFilter|textNoSuggestions|textMultiLine" @@ -29,18 +28,6 @@ android:textCursorDrawable="@null" android:textColor="#000000"/> - - - + + android:layout_width="50dp" + android:layout_height="50dp" + android:id="@+id/messages_list_row_avatar" + android:contentDescription="" + android:layout_marginTop="8dp" + android:layout_gravity="top"/> + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:id="@+id/messages_list_row_name" + android:textSize="18dp" + android:layout_marginLeft="61dp" + android:ellipsize="end" + android:layout_marginTop="10dp" + android:maxLines="1" + android:textColor="#000000" + android:layout_marginRight="60dp" + android:layout_gravity="top"/> + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:id="@+id/messages_list_row_message" + android:textSize="15dp" + android:maxLines="1" + android:ellipsize="end" + android:textColor="#808080" + android:layout_marginLeft="61dp" + android:layout_marginTop="34dp" + android:layout_marginRight="60dp" + android:layout_gravity="top"/> - + + + - \ No newline at end of file