From 28ba1ac17c7a0c250329463eeeaafe7a95d5634b Mon Sep 17 00:00:00 2001 From: Aayush Gupta Date: Tue, 5 Mar 2024 14:52:28 +0530 Subject: [PATCH] SplashFragment: Fixes for AuthState.Failed * Make menu invisible instead of clearing it * Apply appropriate margin to the status textView Signed-off-by: Aayush Gupta --- .../java/com/aurora/store/view/ui/splash/SplashFragment.kt | 4 ++-- app/src/main/res/layout/fragment_splash.xml | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/aurora/store/view/ui/splash/SplashFragment.kt b/app/src/main/java/com/aurora/store/view/ui/splash/SplashFragment.kt index edbd37c4c..828dbdba3 100644 --- a/app/src/main/java/com/aurora/store/view/ui/splash/SplashFragment.kt +++ b/app/src/main/java/com/aurora/store/view/ui/splash/SplashFragment.kt @@ -170,10 +170,10 @@ class SplashFragment : Fragment(R.layout.fragment_splash) { private fun updateActionLayout(isVisible: Boolean) { if (isVisible) { binding.layoutAction.show() - binding.layoutToolbarAction.toolbar.invalidateMenu() + binding.layoutToolbarAction.toolbar.visibility = View.VISIBLE } else { binding.layoutAction.hide() - binding.layoutToolbarAction.toolbar.menu.clear() + binding.layoutToolbarAction.toolbar.visibility = View.INVISIBLE } } diff --git a/app/src/main/res/layout/fragment_splash.xml b/app/src/main/res/layout/fragment_splash.xml index 7a7e53e08..d63185f2f 100644 --- a/app/src/main/res/layout/fragment_splash.xml +++ b/app/src/main/res/layout/fragment_splash.xml @@ -65,6 +65,7 @@ android:layout_height="wrap_content" android:layout_below="@id/txt_title" android:layout_centerHorizontal="true" + android:layout_marginHorizontal="@dimen/margin_xlarge" android:textAlignment="center" tools:text="Sign in first" /> @@ -128,4 +129,4 @@ android:textAlignment="center" tools:text="Version 4.0.1" /> - \ No newline at end of file +