From f38b7a30a0ac09a3b3ed24e7f0272df4ae9ee7b0 Mon Sep 17 00:00:00 2001 From: Niels Andriesse Date: Wed, 5 Feb 2020 11:29:45 +1100 Subject: [PATCH] Implement open group suggestion sheet --- .../default_bottom_sheet_background.xml | 11 ++++ .../default_bottom_sheet_background_inset.xml | 8 +++ res/drawable/ic_chat_bubbles.xml | 37 +++++++++++ ...ent_open_group_suggestion_bottom_sheet.xml | 63 +++++++++++++++++++ res/values/styles.xml | 8 +++ .../securesms/DeviceListFragment.java | 2 +- .../loki/redesign/activities/HomeActivity.kt | 29 +++++++++ .../activities/LinkedDevicesActivity.kt | 6 +- .../DeviceEditingOptionsBottomSheet.kt | 2 +- .../dialogs/OpenGroupSuggestionBottomSheet.kt | 29 +++++++++ .../securesms/util/TextSecurePreferences.java | 8 +++ 11 files changed, 196 insertions(+), 7 deletions(-) create mode 100644 res/drawable/default_bottom_sheet_background.xml create mode 100644 res/drawable/default_bottom_sheet_background_inset.xml create mode 100644 res/drawable/ic_chat_bubbles.xml create mode 100644 res/layout/fragment_open_group_suggestion_bottom_sheet.xml rename src/org/thoughtcrime/securesms/loki/redesign/{views => dialogs}/DeviceEditingOptionsBottomSheet.kt (94%) create mode 100644 src/org/thoughtcrime/securesms/loki/redesign/dialogs/OpenGroupSuggestionBottomSheet.kt diff --git a/res/drawable/default_bottom_sheet_background.xml b/res/drawable/default_bottom_sheet_background.xml new file mode 100644 index 0000000000..127fdb9645 --- /dev/null +++ b/res/drawable/default_bottom_sheet_background.xml @@ -0,0 +1,11 @@ + + + + + + + + + \ No newline at end of file diff --git a/res/drawable/default_bottom_sheet_background_inset.xml b/res/drawable/default_bottom_sheet_background_inset.xml new file mode 100644 index 0000000000..6806f7b96c --- /dev/null +++ b/res/drawable/default_bottom_sheet_background_inset.xml @@ -0,0 +1,8 @@ + + + \ No newline at end of file diff --git a/res/drawable/ic_chat_bubbles.xml b/res/drawable/ic_chat_bubbles.xml new file mode 100644 index 0000000000..6af5f35f47 --- /dev/null +++ b/res/drawable/ic_chat_bubbles.xml @@ -0,0 +1,37 @@ + + + + + + + diff --git a/res/layout/fragment_open_group_suggestion_bottom_sheet.xml b/res/layout/fragment_open_group_suggestion_bottom_sheet.xml new file mode 100644 index 0000000000..b26d9f86dc --- /dev/null +++ b/res/layout/fragment_open_group_suggestion_bottom_sheet.xml @@ -0,0 +1,63 @@ + + + + + + + + + +