SplashFragment: Fixes for AuthState.Failed
* Make menu invisible instead of clearing it * Apply appropriate margin to the status textView Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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" />
|
||||
</RelativeLayout>
|
||||
@@ -128,4 +129,4 @@
|
||||
android:textAlignment="center"
|
||||
tools:text="Version 4.0.1" />
|
||||
</RelativeLayout>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
Reference in New Issue
Block a user