From a80c35e0cf669ac92c81c3145aa30b2661b14510 Mon Sep 17 00:00:00 2001 From: Narinder Rana Date: Thu, 31 Mar 2022 12:58:00 +0530 Subject: [PATCH] remove invite friends option --- .../com/moez/QKSMS/feature/main/MainActivity.kt | 3 +-- .../java/com/moez/QKSMS/feature/main/MainView.kt | 2 +- .../com/moez/QKSMS/feature/main/MainViewModel.kt | 1 - presentation/src/main/res/layout/drawer_view.xml | 14 -------------- 4 files changed, 2 insertions(+), 18 deletions(-) diff --git a/presentation/src/main/java/com/moez/QKSMS/feature/main/MainActivity.kt b/presentation/src/main/java/com/moez/QKSMS/feature/main/MainActivity.kt index 1ea041bae..11f94660b 100644 --- a/presentation/src/main/java/com/moez/QKSMS/feature/main/MainActivity.kt +++ b/presentation/src/main/java/com/moez/QKSMS/feature/main/MainActivity.kt @@ -105,9 +105,8 @@ class MainActivity : QkThemedActivity(), MainView { scheduled.clicks().map { NavItem.SCHEDULED }, blocking.clicks().map { NavItem.BLOCKING }, settings.clicks().map { NavItem.SETTINGS }, - help.clicks().map { NavItem.HELP }, - invite.clicks().map { NavItem.INVITE })) + )) } override val optionsItemIntent: Subject = PublishSubject.create() override val conversationsSelectedIntent by lazy { conversationsAdapter.selectionChanges } diff --git a/presentation/src/main/java/com/moez/QKSMS/feature/main/MainView.kt b/presentation/src/main/java/com/moez/QKSMS/feature/main/MainView.kt index 30fc0fbed..ada78d80f 100644 --- a/presentation/src/main/java/com/moez/QKSMS/feature/main/MainView.kt +++ b/presentation/src/main/java/com/moez/QKSMS/feature/main/MainView.kt @@ -52,4 +52,4 @@ interface MainView : QkView { } -enum class NavItem { BACK, INBOX, ARCHIVED, BACKUP, SCHEDULED, BLOCKING, SETTINGS, HELP, INVITE } \ No newline at end of file +enum class NavItem { BACK, INBOX, ARCHIVED, BACKUP, SCHEDULED, BLOCKING, SETTINGS, HELP } \ No newline at end of file diff --git a/presentation/src/main/java/com/moez/QKSMS/feature/main/MainViewModel.kt b/presentation/src/main/java/com/moez/QKSMS/feature/main/MainViewModel.kt index e1db897ad..fe690def6 100644 --- a/presentation/src/main/java/com/moez/QKSMS/feature/main/MainViewModel.kt +++ b/presentation/src/main/java/com/moez/QKSMS/feature/main/MainViewModel.kt @@ -265,7 +265,6 @@ class MainViewModel @Inject constructor( NavItem.SETTINGS -> navigator.showSettings() NavItem.HELP -> navigator.showSupport() - NavItem.INVITE -> navigator.showInvite() else -> Unit } drawerItem diff --git a/presentation/src/main/res/layout/drawer_view.xml b/presentation/src/main/res/layout/drawer_view.xml index 6d90c7e43..d5c7adce0 100644 --- a/presentation/src/main/res/layout/drawer_view.xml +++ b/presentation/src/main/res/layout/drawer_view.xml @@ -182,20 +182,6 @@ - - - - - - - -- GitLab