From 6dbe9b0ca99f87c99743207ee69ba8523b54a72a Mon Sep 17 00:00:00 2001 From: Niels Andriesse Date: Wed, 18 Dec 2019 14:31:12 +0100 Subject: [PATCH] Hook up new private chat screen redesign logic --- build.gradle | 2 + .../fragment_scan_qr_code_placeholder.xml | 34 +++++ res/layout/fragment_scan_qr_code_v2.xml | 40 ++++++ res/layout/fragment_scan_qr_code_wrapper.xml | 6 + .../activities/NewPrivateChatActivity.kt | 124 +++++++++++++++++- .../fragments/ScanQRCodeFragmentV2.kt | 58 ++++++++ .../ScanQRCodePlaceholderFragment.kt | 27 ++++ .../loki/redesign/views/SeparatorView.kt | 3 +- 8 files changed, 289 insertions(+), 5 deletions(-) create mode 100644 res/layout/fragment_scan_qr_code_placeholder.xml create mode 100644 res/layout/fragment_scan_qr_code_v2.xml create mode 100644 res/layout/fragment_scan_qr_code_wrapper.xml create mode 100644 src/org/thoughtcrime/securesms/loki/redesign/fragments/ScanQRCodeFragmentV2.kt create mode 100644 src/org/thoughtcrime/securesms/loki/redesign/fragments/ScanQRCodePlaceholderFragment.kt diff --git a/build.gradle b/build.gradle index 5ad5cc9103..b0be9299ab 100644 --- a/build.gradle +++ b/build.gradle @@ -193,6 +193,8 @@ dependencies { implementation("com.crashlytics.sdk.android:crashlytics:$crashlytics_version@aar") { transitive = true } + implementation "com.jakewharton.rxbinding3:rxbinding:3.1.0" + implementation "com.github.tbruyelle:rxpermissions:0.10.2" } def canonicalVersionCode = 23 diff --git a/res/layout/fragment_scan_qr_code_placeholder.xml b/res/layout/fragment_scan_qr_code_placeholder.xml new file mode 100644 index 0000000000..1a3178b485 --- /dev/null +++ b/res/layout/fragment_scan_qr_code_placeholder.xml @@ -0,0 +1,34 @@ + + + + + + + +