From fe6390075a90d29fbe433808f391f3523507fcb5 Mon Sep 17 00:00:00 2001 From: Chumva Date: Thu, 25 Apr 2019 00:45:21 +0300 Subject: [PATCH] Fix minor ui bugs --- .../res/layout/fragement_settings_dialog.xml | 1 + .../res/layout/fragment_search_dialog.xml | 1 + .../osmand/telegram/ui/LoginDialogFragment.kt | 26 +++++---- .../telegram/ui/SearchDialogFragment.kt | 56 +++++++++++++++---- .../telegram/ui/SettingsDialogFragment.kt | 9 +-- .../net/osmand/telegram/utils/AndroidUtils.kt | 21 +++++++ 6 files changed, 89 insertions(+), 25 deletions(-) diff --git a/OsmAnd-telegram/res/layout/fragement_settings_dialog.xml b/OsmAnd-telegram/res/layout/fragement_settings_dialog.xml index e063c5ee3d..bd1bb922e1 100644 --- a/OsmAnd-telegram/res/layout/fragement_settings_dialog.xml +++ b/OsmAnd-telegram/res/layout/fragement_settings_dialog.xml @@ -5,6 +5,7 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" + android:fitsSystemWindows="true" android:orientation="vertical"> (R.id.welcome_continue_button) - continueButton?.setOnClickListener { - showWelcomeDialog = false - if (!privacyPolicyAgreed) { - loginDialogActiveType = LoginDialogType.PRIVACY_POLICY - showProgress = false - } else if (loginDialogActiveType == null) { - loginDialogActiveType = LoginDialogType.ENTER_PHONE_NUMBER - showProgress = true + view?.findViewById