Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c5891e40 authored by Fahim M. Choudhury's avatar Fahim M. Choudhury Committed by Nishith Khanna
Browse files

refactor: update no connection UI

parent c8683303
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="48dp"
    android:height="48dp"
    android:viewportWidth="48"
    android:viewportHeight="48">
  <path
      android:pathData="M24,22.167C19.677,22.167 15.694,23.594 12.5,26L8.667,20.889C12.947,17.673 18.25,15.778 24,15.778C29.75,15.778 35.053,17.673 39.333,20.889L36.607,24.509C35.819,24.658 35.032,24.871 34.307,25.169C31.326,23.232 27.791,22.167 24,22.167ZM43.167,15.778L47,10.667C40.59,5.854 32.625,3 24,3C15.375,3 7.41,5.854 1,10.667L4.833,15.778C10.157,11.774 16.802,9.389 24,9.389C31.198,9.389 37.843,11.774 43.167,15.778ZM24,28.556C21.125,28.556 18.463,29.514 16.333,31.111L24,41.333L26.215,38.373C26.13,37.947 26.13,37.521 26.13,37.074C26.13,34.22 27.067,31.601 28.664,29.471C27.194,28.896 25.64,28.556 24,28.556ZM43.422,29.535L38.907,34.071L34.393,29.556L31.39,32.559L35.905,37.074L31.39,41.589L34.393,44.613L38.907,40.077L43.422,44.613L46.446,41.589L41.91,37.074L46.446,32.559L43.422,29.535Z"
      android:fillColor="#000000"
      android:fillAlpha="0.38"/>
</vector>
+33 −11
Original line number Diff line number Diff line
@@ -23,24 +23,46 @@
    android:layout_height="match_parent"
    tools:context=".ui.MainActivity">

    <com.google.android.material.textview.MaterialTextView
    <LinearLayout
        android:id="@+id/noInternet"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginStart="20dp"
        android:layout_marginTop="10dp"
        android:layout_marginEnd="20dp"
        android:drawableTop="@drawable/ic_error_circular"
        android:text="@string/no_internet_message"
        android:textAlignment="center"
        android:textColor="?android:textColorSecondary"
        android:textSize="18sp"
        android:layout_marginHorizontal="56dp"
        android:gravity="center"
        android:orientation="vertical"
        android:visibility="gone"
        app:drawableTint="@color/colorAccent"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintBottom_toTopOf="@id/bottomNavigationView"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent" />
        tools:visibility="visible">

        <ImageView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:contentDescription="@string/no_internet_title"
            android:src="@drawable/ic_no_connection"
            app:tint="@color/e_disabled_color" />

        <com.google.android.material.textview.MaterialTextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="8dp"
            android:text="@string/no_internet_title"
            android:textColor="@color/e_primary_text_color"
            android:textSize="18sp" />

        <com.google.android.material.textview.MaterialTextView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="8dp"
            android:text="@string/no_internet_message"
            android:textAlignment="center"
            android:textColor="@color/e_disabled_color"
            android:textSize="15sp"
            android:visibility="visible" />

    </LinearLayout>

    <androidx.fragment.app.FragmentContainerView
        android:id="@+id/fragment"
+1 −1
Original line number Diff line number Diff line
@@ -101,7 +101,7 @@
    <string name="manually_install_updates_notification_text">App-Aktualisierungen werden nicht automatisch installiert</string>
    <string name="updates_notification_unmetered_network_warning">Auf ein unlimitiertes Netzwerk warten</string>
    <string name="no_internet_title">Keine Verbindung</string>
    <string name="no_internet_message">Keine Verbindung möglich. Bitte überprüfe die Internetverbindung und versuche es erneut</string>
    <string name="no_internet_message">Bitte überprüfe deine Internetverbindung und versuche es erneut.</string>
    <string name="menu_home">Start</string>
    <string name="search_hint">App-Suche</string>
    <string name="search_back_button">Zurück</string>
+1 −1
Original line number Diff line number Diff line
@@ -105,7 +105,7 @@
    <string name="updates">Actualizaciones</string>
    <string name="manually_install_updates_notification_text">Las actualizaciones no se instalarán automáticamente</string>
    <string name="no_internet_title">Sin conexión</string>
    <string name="no_internet_message">¡No se pudo conectar! Chequea tu conexión a internet e inténtalo de nuevo</string>
    <string name="no_internet_message">Por favor, comprueba tu conexión a internet e inténtalo de nuevo.</string>
    <string name="updates_notification_unmetered_network_warning">Esperando una red sin contador</string>
    <string name="menu_home">Inicio</string>
    <string name="apps">Aplicaciones</string>
+1 −1
Original line number Diff line number Diff line
@@ -93,7 +93,7 @@
    <string name="dialog_confirm">VAHVISTA</string>
    <string name="dialog_paidapp_message">Kun klikkaat vahvista, pääset sovelluksen Google Play -sivulle ja voit suorittaa oston loppuun selaimellasi. Klikkaa vahvista ostaaksesi %1$s hintaan %2$s.</string>
    <string name="dialog_title_paid_app">Osta <b>%1$s</b></string>
    <string name="no_internet_message">Yhteyden muodostaminen ei onnistu! Tarkista internetyhteytesi ja yritä uudelleen</string>
    <string name="no_internet_message">Tarkista internetyhteytesi ja yritä uudelleen.</string>
    <string name="updates_notification_unmetered_network_warning">Odotetaan mittaamatonta verkkoa</string>
    <string name="manually_install_updates_notification_text">Sovelluspäivityksiä ei asenneta automaattisesti</string>
    <string name="automatically_install_updates_notification_text">Sovelluspäivitykset asennetaan automaattisesti</string>
Loading