From 95dc4e659026e134e5bba0486b25698c212298d0 Mon Sep 17 00:00:00 2001 From: Niels Andriesse Date: Wed, 18 Dec 2019 15:25:23 +0100 Subject: [PATCH] Implement join public chat screen redesign --- AndroidManifest.xml | 6 +- res/drawable/ic_globe.xml | 4 + ...t.xml => activity_create_private_chat.xml} | 0 res/layout/activity_join_public_chat.xml | 14 +++ res/layout/fragment_enter_chat_url.xml | 47 ++++++++++ res/layout/fragment_scan_qr_code_v2.xml | 2 +- res/menu/menu_home.xml | 12 +++ ...tivity.kt => CreatePrivateChatActivity.kt} | 79 ++++------------ .../loki/redesign/activities/HomeActivity.kt | 25 +++++- .../activities/JoinPublicChatActivity.kt | 90 +++++++++++++++++++ .../fragments/ScanQRCodeFragmentV2.kt | 6 +- .../fragments/ScanQRCodeWrapperFragment.kt | 62 +++++++++++++ 12 files changed, 281 insertions(+), 66 deletions(-) create mode 100644 res/drawable/ic_globe.xml rename res/layout/{activity_new_private_chat.xml => activity_create_private_chat.xml} (100%) create mode 100644 res/layout/activity_join_public_chat.xml create mode 100644 res/layout/fragment_enter_chat_url.xml create mode 100644 res/menu/menu_home.xml rename src/org/thoughtcrime/securesms/loki/redesign/activities/{NewPrivateChatActivity.kt => CreatePrivateChatActivity.kt} (67%) create mode 100644 src/org/thoughtcrime/securesms/loki/redesign/activities/JoinPublicChatActivity.kt create mode 100644 src/org/thoughtcrime/securesms/loki/redesign/fragments/ScanQRCodeWrapperFragment.kt diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 964d25e62c..33e189c2be 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -143,8 +143,12 @@ android:name="org.thoughtcrime.securesms.loki.redesign.activities.HomeActivity" android:launchMode="singleTask" /> + + + diff --git a/res/layout/activity_new_private_chat.xml b/res/layout/activity_create_private_chat.xml similarity index 100% rename from res/layout/activity_new_private_chat.xml rename to res/layout/activity_create_private_chat.xml diff --git a/res/layout/activity_join_public_chat.xml b/res/layout/activity_join_public_chat.xml new file mode 100644 index 0000000000..d6bf8f66d7 --- /dev/null +++ b/res/layout/activity_join_public_chat.xml @@ -0,0 +1,14 @@ + + + + + + \ No newline at end of file diff --git a/res/layout/fragment_enter_chat_url.xml b/res/layout/fragment_enter_chat_url.xml new file mode 100644 index 0000000000..512456eb9a --- /dev/null +++ b/res/layout/fragment_enter_chat_url.xml @@ -0,0 +1,47 @@ + + + + + + + + + +