mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 01:53:31 +00:00
Add dialog when server is unreachable
This commit is contained in:
parent
652aa1426d
commit
33512eec2d
6 changed files with 141 additions and 2 deletions
11
app/src/main/res/layout/dialog_server_unreachable.xml
Normal file
11
app/src/main/res/layout/dialog_server_unreachable.xml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:text="aaaaaa" />
|
||||
</LinearLayout>
|
||||
|
|
@ -4,7 +4,6 @@
|
|||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/nav_graph"
|
||||
app:startDestination="@id/landingFragment">
|
||||
|
||||
<fragment
|
||||
android:id="@+id/landingFragment"
|
||||
android:name="com.cappielloantonio.play.ui.fragment.LandingFragment"
|
||||
|
|
@ -21,7 +20,6 @@
|
|||
app:popUpTo="@id/landingFragment"
|
||||
app:popUpToInclusive="true" />
|
||||
</fragment>
|
||||
|
||||
<fragment
|
||||
android:id="@+id/loginFragment"
|
||||
android:name="com.cappielloantonio.play.ui.fragment.LoginFragment"
|
||||
|
|
@ -38,6 +36,11 @@
|
|||
android:name="com.cappielloantonio.play.ui.fragment.HomeFragment"
|
||||
android:label="HomeFragment"
|
||||
tools:layout="@layout/fragment_home">
|
||||
<action
|
||||
android:id="@+id/action_homeFragment_to_loginFragment"
|
||||
app:destination="@id/loginFragment"
|
||||
app:popUpTo="@id/homeFragment"
|
||||
app:popUpToInclusive="true" />
|
||||
<action
|
||||
android:id="@+id/action_homeFragment_to_songListPageFragment"
|
||||
app:destination="@id/songListPageFragment" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue