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 9c50d01d..054f95cb 100644 --- a/app/src/main/java/gr/thmmy/mthmmy/activities/LoginActivity.java +++ b/app/src/main/java/gr/thmmy/mthmmy/activities/LoginActivity.java @@ -11,14 +11,9 @@ import android.widget.LinearLayout; import android.widget.ScrollView; import android.widget.Toast; -import java.io.IOException; - import gr.thmmy.mthmmy.R; import gr.thmmy.mthmmy.activities.main.MainActivity; import mthmmy.utils.Report; -import pl.droidsonroids.gif.AnimationListener; -import pl.droidsonroids.gif.GifDrawable; -import pl.droidsonroids.gif.GifImageView; import static gr.thmmy.mthmmy.session.SessionManager.CONNECTION_ERROR; import static gr.thmmy.mthmmy.session.SessionManager.EXCEPTION; @@ -91,23 +86,6 @@ public class LoginActivity extends BaseActivity { overridePendingTransition(R.anim.push_left_in, R.anim.push_left_out); } }); - - - //GIF logo init - GifImageView gifImageView = (GifImageView) findViewById(R.id.logo); - try { - final GifDrawable gifFromPath = new GifDrawable(getResources(), R.drawable.logo_animated); - gifFromPath.setSpeed(0.7f); - gifFromPath.addAnimationListener(new AnimationListener() { - @Override - public void onAnimationCompleted(int loopNumber) { - gifFromPath.reset(); - } - }); - gifImageView.setImageDrawable(gifFromPath); - } catch (IOException e) { - Report.wtf(TAG,"IO at animated logo (?)"); - } } @Override diff --git a/app/src/main/res/drawable/logo_animated.gif b/app/src/main/res/drawable/logo_animated.gif index 1bb1f385..b1fb737b 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 62f6b036..9c3a94ff 100644 --- a/app/src/main/res/layout/activity_login.xml +++ b/app/src/main/res/layout/activity_login.xml @@ -28,6 +28,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_horizontal" + android:src="@drawable/logo_animated" android:id="@+id/logo" />