SplashFragment: Add menu button to about fragment
Instead of showing version below login buttons (that for some reason has never been shown), link about fragment in the menu button which provides more information. Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
@@ -79,6 +79,8 @@ class SplashFragment : Fragment(R.layout.fragment_splash) {
|
||||
R.id.menu_settings -> {
|
||||
findNavController().navigate(R.id.settingsFragment)
|
||||
}
|
||||
|
||||
R.id.menu_about -> findNavController().navigate(R.id.aboutFragment)
|
||||
}
|
||||
true
|
||||
}
|
||||
|
||||
@@ -117,15 +117,6 @@
|
||||
android:layout_height="wrap_content"
|
||||
app:btnStateIcon="@drawable/ic_anonymous"
|
||||
app:btnStateText="@string/account_anonymous_insecure" />
|
||||
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/txt_footer"
|
||||
style="@style/AuroraTextStyle.Line3"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/margin_small"
|
||||
android:textAlignment="center"
|
||||
tools:text="Version 4.0.1" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
@@ -111,14 +111,5 @@
|
||||
android:visibility="gone"
|
||||
app:btnStateIcon="@drawable/ic_anonymous"
|
||||
app:btnStateText="@string/account_anonymous_insecure" />
|
||||
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/txt_footer"
|
||||
style="@style/AuroraTextStyle.Line3"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/margin_small"
|
||||
android:textAlignment="center"
|
||||
tools:text="Version 4.0.1" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
@@ -33,4 +33,9 @@
|
||||
android:id="@+id/menu_settings"
|
||||
android:icon="@drawable/ic_menu_settings"
|
||||
android:title="@string/title_settings" />
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_about"
|
||||
android:icon="@drawable/ic_menu_about"
|
||||
android:title="@string/title_about" />
|
||||
</menu>
|
||||
|
||||
Reference in New Issue
Block a user