From 1eb207ad0ef9838cb3c569f978f1e832be0c8f64 Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Fri, 20 Mar 2020 02:27:27 +0100 Subject: [PATCH] Fixed jumping icon on splash screen --- .../java/de/danoeh/antennapod/activity/SplashActivity.java | 1 + app/src/main/res/layout/splash.xml | 2 +- core/src/main/res/values-v26/styles.xml | 6 ------ 3 files changed, 2 insertions(+), 7 deletions(-) delete mode 100644 core/src/main/res/values-v26/styles.xml diff --git a/app/src/main/java/de/danoeh/antennapod/activity/SplashActivity.java b/app/src/main/java/de/danoeh/antennapod/activity/SplashActivity.java index bd1ccaea4..b31ab4d3d 100644 --- a/app/src/main/java/de/danoeh/antennapod/activity/SplashActivity.java +++ b/app/src/main/java/de/danoeh/antennapod/activity/SplashActivity.java @@ -45,6 +45,7 @@ public class SplashActivity extends AppCompatActivity { .subscribe(() -> { Intent intent = new Intent(SplashActivity.this, MainActivity.class); startActivity(intent); + overridePendingTransition(0, 0); finish(); }); } diff --git a/app/src/main/res/layout/splash.xml b/app/src/main/res/layout/splash.xml index 71b6cd15a..126b93481 100644 --- a/app/src/main/res/layout/splash.xml +++ b/app/src/main/res/layout/splash.xml @@ -9,6 +9,6 @@ android:layout_height="24dp" android:layout_alignParentBottom="true" android:layout_centerHorizontal="true" - android:layout_margin="36dp" + android:layout_marginBottom="96dp" android:id="@+id/progressBar"/> diff --git a/core/src/main/res/values-v26/styles.xml b/core/src/main/res/values-v26/styles.xml deleted file mode 100644 index 87453eb5e..000000000 --- a/core/src/main/res/values-v26/styles.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - \ No newline at end of file