From 1321d9d6d659db36880f14532603902ff24a339a Mon Sep 17 00:00:00 2001 From: DrKLO Date: Sat, 5 Apr 2014 04:38:10 +0400 Subject: [PATCH] Fixed lock position in secret chat placeholder for long strings --- .../ui/ChatProfileChangeNameActivity.java | 2 +- .../layout-ar/encrypted_chat_placeholder.xml | 130 ++++++++++++------ .../res/layout/encrypted_chat_placeholder.xml | 74 ---------- 3 files changed, 90 insertions(+), 116 deletions(-) delete mode 100644 TMessagesProj/src/main/res/layout/encrypted_chat_placeholder.xml diff --git a/TMessagesProj/src/main/java/org/telegram/ui/ChatProfileChangeNameActivity.java b/TMessagesProj/src/main/java/org/telegram/ui/ChatProfileChangeNameActivity.java index ce3fb03e..c4f26ad6 100644 --- a/TMessagesProj/src/main/java/org/telegram/ui/ChatProfileChangeNameActivity.java +++ b/TMessagesProj/src/main/java/org/telegram/ui/ChatProfileChangeNameActivity.java @@ -69,7 +69,7 @@ public class ChatProfileChangeNameActivity extends BaseFragment { firstNameField.setOnEditorActionListener(new TextView.OnEditorActionListener() { @Override public boolean onEditorAction(TextView textView, int i, KeyEvent keyEvent) { - if (i == EditorInfo.IME_ACTION_DONE) { + if (i == EditorInfo.IME_ACTION_DONE && doneButton != null) { doneButton.performClick(); return true; } diff --git a/TMessagesProj/src/main/res/layout-ar/encrypted_chat_placeholder.xml b/TMessagesProj/src/main/res/layout-ar/encrypted_chat_placeholder.xml index cf38ff8d..c265685e 100644 --- a/TMessagesProj/src/main/res/layout-ar/encrypted_chat_placeholder.xml +++ b/TMessagesProj/src/main/res/layout-ar/encrypted_chat_placeholder.xml @@ -28,52 +28,100 @@ android:layout_gravity="right" android:id="@+id/secret_title"/> - + android:layout_gravity="right"> - + - + - + + + android:orientation="horizontal" + android:layout_marginTop="8dp" + android:layout_gravity="right"> + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/TMessagesProj/src/main/res/layout/encrypted_chat_placeholder.xml b/TMessagesProj/src/main/res/layout/encrypted_chat_placeholder.xml deleted file mode 100644 index a820c0e3..00000000 --- a/TMessagesProj/src/main/res/layout/encrypted_chat_placeholder.xml +++ /dev/null @@ -1,74 +0,0 @@ - - - - - - - - - - - - - - - \ No newline at end of file