diff --git a/app/build.gradle b/app/build.gradle index c8c0f318..2277b345 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -84,7 +84,7 @@ dependencies { implementation 'androidx.constraintlayout:constraintlayout:1.1.3' implementation 'androidx.exifinterface:exifinterface:1.2.0' implementation 'com.google.android.material:material:1.1.0' - implementation 'com.google.firebase:firebase-analytics:17.4.2' + implementation 'com.google.firebase:firebase-analytics:17.4.3' implementation 'com.google.firebase:firebase-messaging:20.2.0' implementation 'com.crashlytics.sdk.android:crashlytics:2.10.1' implementation 'com.snatik:storage:2.1.0' @@ -96,7 +96,6 @@ dependencies { implementation 'com.mikepenz:materialdrawer:6.1.1' implementation 'com.mikepenz:fontawesome-typeface:4.7.0.0@aar' implementation 'com.mikepenz:google-material-typeface:3.0.1.2.original@aar' - implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.19' implementation 'com.bignerdranch.android:expandablerecyclerview:3.0.0-RC1'//TODO: deprecated! implementation 'com.github.chrisbanes:PhotoView:2.3.0' implementation 'me.zhanghai.android.materialprogressbar:library:1.4.2' diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index d78e3cec..5b33736a 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -43,9 +43,6 @@ ; } -# android-gif-drawable --keep public class pl.droidsonroids.gif.GifIOException{(int, java.lang.String);} - # JSoup -keep class org.jsoup.** diff --git a/app/src/main/assets/mit_libraries.html b/app/src/main/assets/mit_libraries.html index 698baab7..33083150 100644 --- a/app/src/main/assets/mit_libraries.html +++ b/app/src/main/assets/mit_libraries.html @@ -8,9 +8,6 @@
  • jsoup v1.13.1 (Copyright ©2009-2020, Jonathan Hedley <jonathan@hedley.net>)
  • -
  • -
    android-gif-drawable v1.2.19 (Copyright ©2013 -2020 Karol Wrótniak, Droids on Roids)
    -
  • Expandable RecyclerView v3.0.0-RC1 (Copyright ©2015, Big Nerd Ranch)
  • diff --git a/app/src/main/java/gr/thmmy/mthmmy/activities/LoginActivity.java b/app/src/main/java/gr/thmmy/mthmmy/activities/LoginActivity.java index a24209e5..d9aff7eb 100644 --- a/app/src/main/java/gr/thmmy/mthmmy/activities/LoginActivity.java +++ b/app/src/main/java/gr/thmmy/mthmmy/activities/LoginActivity.java @@ -6,6 +6,7 @@ import android.os.Bundle; import android.view.View; import android.view.inputmethod.InputMethodManager; import android.widget.EditText; +import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.ScrollView; import android.widget.Toast; @@ -13,6 +14,7 @@ import android.widget.Toast; import androidx.appcompat.widget.AppCompatButton; import androidx.preference.PreferenceManager; +import com.bumptech.glide.Glide; import com.google.firebase.analytics.FirebaseAnalytics; import gr.thmmy.mthmmy.R; @@ -35,6 +37,7 @@ public class LoginActivity extends BaseActivity { private AppCompatButton btnLogin; private EditText inputUsername; private EditText inputPassword; + private ImageView logo; private String username; private String password; /* --Graphics End-- */ @@ -56,6 +59,9 @@ public class LoginActivity extends BaseActivity { inputPassword = findViewById(R.id.password); btnLogin = findViewById(R.id.btnLogin); AppCompatButton btnGuest = findViewById(R.id.btnContinueAsGuest); + logo = findViewById(R.id.logo); + + Glide.with(this).load(R.drawable.logo_animated).into(logo); //Login button Click Event btnLogin.setOnClickListener(view -> { diff --git a/app/src/main/res/drawable/logo_animated.gif b/app/src/main/res/drawable/logo_animated.gif index 5242fa70..99764cff 100644 Binary files a/app/src/main/res/drawable/logo_animated.gif and b/app/src/main/res/drawable/logo_animated.gif differ diff --git a/app/src/main/res/layout/activity_login.xml b/app/src/main/res/layout/activity_login.xml index 9ac472f0..fa8cd0f7 100644 --- a/app/src/main/res/layout/activity_login.xml +++ b/app/src/main/res/layout/activity_login.xml @@ -24,21 +24,20 @@ + android:layout_weight="0.45"/> - + android:layout_weight="0.35"/> + android:autofillHints="username" /> + app:passwordToggleEnabled="true" + app:passwordToggleTint="@color/primary_text"> + android:autofillHints="password" />